Skip to content

Commit

Permalink
chore: using rolldown define at optimzier
Browse files Browse the repository at this point in the history
  • Loading branch information
underfin committed Sep 29, 2024
1 parent 74677f5 commit b188a5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/optimizer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,6 @@ async function prepareRolldownOptimizerRun(
const result = await transformWithOxc(code, id, {
sourcemap: true,
jsx: jsxLoader && /\.js$/.test(id) ? true : undefined,
define,
})
return {
code: result.code,
Expand All @@ -772,6 +771,7 @@ async function prepareRolldownOptimizerRun(
input: flatIdDeps,
logLevel: 'warn',
plugins,
define,
resolve: {
// TODO: set aliasFields, conditionNames depending on `platform`
mainFields: ['module', 'main'],
Expand Down

0 comments on commit b188a5d

Please sign in to comment.