mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 21:55:11 +00:00
fix(vite): external modules under/esm/
pattern (#1949)
Co-authored-by: Ben <bencodezen@users.noreply.github.com> Co-authored-by: pooya parsa <pyapar@gmail.com>
This commit is contained in:
parent
bf0933a2f0
commit
86a47a2fea
@ -42,6 +42,7 @@ export async function buildServer (ctx: ViteBuildContext) {
|
||||
noExternal: [
|
||||
...ctx.nuxt.options.build.transpile,
|
||||
// TODO: Use externality for production (rollup) build
|
||||
/\/esm\/.*\.js$/,
|
||||
/\.(es|esm|esm-browser|esm-bundler).js$/,
|
||||
'/__vue-jsx',
|
||||
'#app',
|
||||
|
Loading…
Reference in New Issue
Block a user