Skip to content

Commit 95bce64

Browse files
committed
chore: change for latest native vite resolver plugin
1 parent 14189d9 commit 95bce64

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

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

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -228,13 +228,6 @@ export function oxcResolvePlugin(
228228
Array.isArray(options.noExternal) || options.noExternal === true
229229
? options.noExternal
230230
: [options.noExternal]
231-
if (
232-
Array.isArray(noExternal) &&
233-
noExternal.some((e) => typeof e !== 'string')
234-
) {
235-
throw new Error('RegExp is not supported for noExternal for now')
236-
}
237-
const filteredNoExternal = noExternal as true | string[]
238231

239232
return viteResolvePlugin({
240233
resolveOptions: {
@@ -259,7 +252,8 @@ export function oxcResolvePlugin(
259252
environmentConsumer: environment.config.consumer,
260253
environmentName: environment.name,
261254
external: options.external,
262-
noExternal: filteredNoExternal,
255+
noExternal: noExternal,
256+
dedupe: options.dedupe,
263257
finalizeBareSpecifier: !depsOptimizer
264258
? undefined
265259
: (resolvedId, rawId, importer) => {

0 commit comments

Comments
 (0)