mirror of
https://github.com/vitejs/vite.git
synced 2024-11-22 07:09:05 +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`,
|
replacement: `__require`,
|
||||||
},
|
},
|
||||||
'json-stable-stringify/index.js': {
|
'json-stable-stringify/index.js': {
|
||||||
pattern: /^var json = typeof JSON.+require\('jsonify'\);$/gm,
|
src: "require('jsonify')",
|
||||||
replacement: 'var json = JSON',
|
replacement: 'JSON',
|
||||||
},
|
},
|
||||||
// postcss-import uses the `resolve` dep if the `resolve` option is not passed.
|
// 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
|
// However, we always pass the `resolve` option. Remove this import to avoid
|
||||||
|
Loading…
Reference in New Issue
Block a user