mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 15:42:09 +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: [
|
noExternal: [
|
||||||
...ctx.nuxt.options.build.transpile,
|
...ctx.nuxt.options.build.transpile,
|
||||||
// TODO: Use externality for production (rollup) build
|
// TODO: Use externality for production (rollup) build
|
||||||
|
/\/esm\/.*\.js$/,
|
||||||
/\.(es|esm|esm-browser|esm-bundler).js$/,
|
/\.(es|esm|esm-browser|esm-bundler).js$/,
|
||||||
'/__vue-jsx',
|
'/__vue-jsx',
|
||||||
'#app',
|
'#app',
|
||||||
|
Loading…
Reference in New Issue
Block a user