Skip to content

Commit 2042b91

Browse files
authoredAug 9, 2022
refactor(resolve): remove commonjs plugin handling (#9460)
1 parent 4e9bdd4 commit 2042b91

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed
 

‎packages/vite/src/node/plugins/resolve.ts

-5
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,6 @@ export function resolvePlugin(resolveOptions: InternalResolveOptions): Plugin {
115115
return id
116116
}
117117

118-
// fast path for commonjs proxy modules
119-
if (/\?commonjs/.test(id) || id === 'commonjsHelpers.js') {
120-
return
121-
}
122-
123118
const targetWeb = !ssr || ssrTarget === 'webworker'
124119

125120
// this is passed by @rollup/plugin-commonjs

0 commit comments

Comments
 (0)
Please sign in to comment.