We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f576d98 commit bcc4a61Copy full SHA for bcc4a61
packages/vite/rollup.config.ts
@@ -117,8 +117,8 @@ function createNodePlugins(
117
replacement: `__require`,
118
},
119
'json-stable-stringify/index.js': {
120
- pattern: /^var json = typeof JSON.+require\('jsonify'\);$/gm,
121
- replacement: 'var json = JSON',
+ src: "require('jsonify')",
+ replacement: 'JSON',
122
123
// postcss-import uses the `resolve` dep if the `resolve` option is not passed.
124
// However, we always pass the `resolve` option. Remove this import to avoid
0 commit comments