-
-
Notifications
You must be signed in to change notification settings - Fork 1k
fix(webpack): respect build.transpile
#5043
Conversation
β Deploy Preview for nuxt3-docs canceled.
|
packages/webpack/src/presets/nuxt.ts
Outdated
| export function nuxt (ctx: WebpackConfigContext) { | ||
| applyPresets(ctx, [ | ||
| base, | ||
| baseTranspile, |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
build.transpile
|
Pending merge to double-check |
π Linked issue
β Type of change
π Description
Extracted from #5042, this PR respects user's
build.transpilefor forcing transpilation on files innode_modules.π Checklist