We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
.mjs
1 parent 6cee1bf commit 8a68fa9Copy full SHA for 8a68fa9
packages/nuxt/src/vite/addServerConfig.ts
@@ -120,7 +120,7 @@ function wrapEntryWithDynamicImport(resolvedSentryConfigPath: string): InputPlug
120
return { id: source, moduleSideEffects: true, external: true };
121
}
122
123
- if (options.isEntry && !source.includes(`.mjs${SENTRY_WRAPPED_ENTRY}`)) {
+ if (options.isEntry && source.includes('.mjs') && !source.includes(`.mjs${SENTRY_WRAPPED_ENTRY}`)) {
124
const resolution = await this.resolve(source, importer, options);
125
126
// If it cannot be resolved or is external, just return it so that Rollup can display an error
0 commit comments