File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
packages/vite/src/node/plugins Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -167,20 +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 (
181
- config . experimental . enableNativePlugin === true &&
182
- config . command === 'build'
183
- ) {
176
+ if ( config . experimental . enableNativePlugin === true && config . isBundled ) {
184
177
return perEnvironmentPlugin ( 'native:dynamic-import-vars' , ( environment ) => {
185
178
const { include, exclude } =
186
179
environment . config . build . dynamicImportVarsOptions
You can’t perform that action at this time.
0 commit comments