Skip to content

Commit

Permalink
refactor(resolve): remove commonjs plugin handling (#9460)
Browse files Browse the repository at this point in the history
  • Loading branch information
sagargurtu authored Aug 9, 2022
1 parent 4e9bdd4 commit 2042b91
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/vite/src/node/plugins/resolve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,6 @@ export function resolvePlugin(resolveOptions: InternalResolveOptions): Plugin {
return id
}

// fast path for commonjs proxy modules
if (/\?commonjs/.test(id) || id === 'commonjsHelpers.js') {
return
}

const targetWeb = !ssr || ssrTarget === 'webworker'

// this is passed by @rollup/plugin-commonjs
Expand Down

0 comments on commit 2042b91

Please sign in to comment.