File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
packages/vite/src/node/plugins Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -167,17 +167,13 @@ export async function transformDynamicImport(
167
167
}
168
168
169
169
export function dynamicImportVarsPlugin ( config : ResolvedConfig ) : Plugin {
170
- if ( config . experimental . enableNativePlugin === true && config . isBundled ) {
171
- return nativeDynamicImportVarsPlugin ( )
172
- }
173
-
174
170
const resolve = createBackCompatIdResolver ( config , {
175
171
preferRelative : true ,
176
172
tryIndex : false ,
177
173
extensions : [ ] ,
178
174
} )
179
175
180
- if ( config . command === 'build' && config . nativePluginEnabledLevel >= 1 ) {
176
+ if ( config . isBundled && config . nativePluginEnabledLevel >= 1 ) {
181
177
return perEnvironmentPlugin ( 'native:dynamic-import-vars' , ( environment ) => {
182
178
const { include, exclude } =
183
179
environment . config . build . dynamicImportVarsOptions
You can’t perform that action at this time.
0 commit comments