File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
packages/vite/src/node/plugins Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -228,13 +228,6 @@ export function oxcResolvePlugin(
228
228
Array . isArray ( options . noExternal ) || options . noExternal === true
229
229
? options . noExternal
230
230
: [ 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 [ ]
238
231
239
232
return viteResolvePlugin ( {
240
233
resolveOptions : {
@@ -259,7 +252,8 @@ export function oxcResolvePlugin(
259
252
environmentConsumer : environment . config . consumer ,
260
253
environmentName : environment . name ,
261
254
external : options . external ,
262
- noExternal : filteredNoExternal ,
255
+ noExternal : noExternal ,
256
+ dedupe : options . dedupe ,
263
257
finalizeBareSpecifier : ! depsOptimizer
264
258
? undefined
265
259
: ( resolvedId , rawId , importer ) => {
You can’t perform that action at this time.
0 commit comments