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

Commit

Permalink
fix: don't need cjs transform in dev either
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Jun 20, 2022
1 parent 986264a commit 38826e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/vite.ts
Expand Up @@ -31,7 +31,7 @@ export async function bundle (nuxt: Nuxt) {
config: vite.mergeConfig(
{
legacy: {
buildRollupPluginCommonjs: !nuxt.options.experimental.externalVue
buildRollupPluginCommonjs: !nuxt.options.experimental.externalVue && !nuxt.options.dev
},
resolve: {
alias: {
Expand Down

0 comments on commit 38826e3

Please sign in to comment.