Skip to content

Commit

Permalink
fix(vite): enable preventAssignment in rollup replace plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed May 29, 2024
1 parent 23d9bd7 commit 997e348
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/bridge/src/vite/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ export async function buildServer (ctx: ViteBuildContext) {
jsxPlugin(),
vuePlugin,
replace({
preventAssignment: true,
'typeof window': '"undefined"',
'typeof document': '"undefined"',
'typeof navigator': '"undefined"',
Expand Down

0 comments on commit 997e348

Please sign in to comment.