mirror of
https://github.com/vitejs/vite.git
synced 2024-11-21 22:59:10 +00:00
build: handle latest json-stable-stringify replacement (#15049)
This commit is contained in:
parent
f576d98265
commit
bcc4a61135
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user