We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7246509 commit a56245eCopy full SHA for a56245e
packages/vite/src/node/plugins/importMetaGlob.ts
@@ -42,7 +42,10 @@ interface ParsedGeneralImportGlobOptions extends GeneralImportGlobOptions {
42
}
43
44
export function importGlobPlugin(config: ResolvedConfig): Plugin {
45
- if (config.experimental.enableNativePlugin === true) {
+ if (
46
+ config.experimental.enableNativePlugin === true &&
47
+ config.command === 'build'
48
+ ) {
49
return nativeImportGlobPlugin({
50
root: config.root,
51
restoreQueryExtension: config.experimental.importGlobRestoreExtension,
0 commit comments