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

Commit

Permalink
fix(vite): external modules under/esm/ pattern (#1949)
Browse files Browse the repository at this point in the history
Co-authored-by: Ben <bencodezen@users.noreply.github.com>
Co-authored-by: pooya parsa <pyapar@gmail.com>
  • Loading branch information
3 people committed Nov 16, 2021
1 parent bf0933a commit 86a47a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vite/src/server.ts
Expand Up @@ -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',
Expand Down

0 comments on commit 86a47a2

Please sign in to comment.