Skip to content

Commit

Permalink
build: handle latest json-stable-stringify replacement (#15049)
Browse files Browse the repository at this point in the history
  • Loading branch information
XiSenao authored Nov 22, 2023
1 parent f576d98 commit bcc4a61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vite/rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ function createNodePlugins(
replacement: `__require`,
},
'json-stable-stringify/index.js': {
pattern: /^var json = typeof JSON.+require\('jsonify'\);$/gm,
replacement: 'var json = JSON',
src: "require('jsonify')",
replacement: 'JSON',
},
// postcss-import uses the `resolve` dep if the `resolve` option is not passed.
// However, we always pass the `resolve` option. Remove this import to avoid
Expand Down

0 comments on commit bcc4a61

Please sign in to comment.