Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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