Skip to content

Commit 9bb994c

Browse files
authored
fix: remove duplicate createRequire in optimizer (#86)
1 parent 382f440 commit 9bb994c

File tree

1 file changed

+0
-4
lines changed
  • packages/vite/src/node/optimizer

1 file changed

+0
-4
lines changed

packages/vite/src/node/optimizer/index.ts

-4
Original file line numberDiff line numberDiff line change
@@ -813,10 +813,6 @@ async function prepareRolldownOptimizerRun(
813813
sourcemap: true,
814814
dir: processingCacheDir,
815815
entryFileNames: '[name].js',
816-
banner:
817-
platform === 'node'
818-
? `import { createRequire } from 'module';const require = createRequire(import.meta.url);`
819-
: undefined,
820816
})
821817
await bundle.close()
822818
return result

0 commit comments

Comments
 (0)