Skip to content
This repository was archived by the owner on Apr 6, 2023. It is now read-only.

Conversation

@danielroe
Copy link
Member

πŸ”— Linked issue

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Extracted from #5042, this PR respects user's build.transpile for forcing transpilation on files in node_modules.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@danielroe danielroe added bug Something isn't working webpack ❗ p4-important Priority 4: bugs that violate documented behavior, or significantly impact perf labels May 18, 2022
@danielroe danielroe requested a review from pi0 May 18, 2022 15:07
@danielroe danielroe self-assigned this May 18, 2022
@netlify
Copy link

netlify bot commented May 18, 2022

βœ… Deploy Preview for nuxt3-docs canceled.

Name Link
πŸ”¨ Latest commit ed67450
πŸ” Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/62a33251f00e8a0008499a5c

export function nuxt (ctx: WebpackConfigContext) {
applyPresets(ctx, [
base,
baseTranspile,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could directly use baseTranspile in base preset. Also I believe there was some leftover issues that didn't add transpile to the base on initial rewrite.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you recall what those issues were?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not precisely (other than TODO comment with unique in the code). Any way we can test that only I believe it had to be in the base. I exported it back in the time since wasn't sure about legacy+modern transpile but we now effectively have one target.

@pi0 pi0 changed the title fix(webpack): respect build.transpile fix(webpack): respect build.transpile May 20, 2022
@pi0
Copy link
Member

pi0 commented May 20, 2022

Pending merge to double-check baseTranspile util.

@pi0 pi0 merged commit 5d4586a into main Jun 10, 2022
@pi0 pi0 deleted the fix/webpack-transpile branch June 10, 2022 13:18
@pi0 pi0 mentioned this pull request Jun 12, 2022
@danielroe danielroe added the 3.x label Jan 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

3.x bug Something isn't working ❗ p4-important Priority 4: bugs that violate documented behavior, or significantly impact perf webpack

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants