Skip to content

Commit

Permalink
chore: remove build warn filter (#12391)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Mar 13, 2023
1 parent f24c2b0 commit 0755cf2
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions packages/vite/rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,6 @@ const sharedNodeOptions = defineConfig({
freeze: false,
},
onwarn(warning, warn) {
// node-resolve complains a lot about this but seems to still work?
if (warning.message.includes('Package subpath')) {
return
}
// we use the eval('require') trick to deal with optional deps
if (warning.message.includes('Use of eval')) {
return
}
if (warning.message.includes('Circular dependency')) {
return
}
Expand Down Expand Up @@ -122,7 +114,7 @@ function createNodePlugins(
// postcss-load-config calls require after register ts-node
'postcss-load-config/src/index.js': {
pattern: /require(?=\((configFile|'ts-node')\))/g,
replacement: `eval('require')`,
replacement: `__require`,
},
'json-stable-stringify/index.js': {
pattern: /^var json = typeof JSON.+require\('jsonify'\);$/gm,
Expand Down

0 comments on commit 0755cf2

Please sign in to comment.