build: enable plugin system in production (#3480)

This commit is contained in:
Alex Yang authored and GitHub committed 2023-07-31 06:52:11 +00:00
1 parent 1d43e46f99
commit e85404a9c5
1 file changed
+1 -1
+1 -1
View File
@@ -38,7 +38,7 @@ Promise.all(
globalThis.__pluginPackageJson__.push(packageJson); globalThis.__pluginPackageJson__.push(packageJson);
logger.debug(`registering plugin ${pluginName}`); logger.debug(`registering plugin ${pluginName}`);
logger.debug(`package.json: ${packageJson}`); logger.debug(`package.json: ${packageJson}`);
if (!release && process.env.NODE_ENV === 'production') { if (!release && !runtimeConfig.enablePlugin) {
return Promise.resolve(); return Promise.resolve();
} }
const baseURL = url; const baseURL = url;