build: enable plugin system in production (#3480)

This commit is contained in:
Alex Yang
2023-07-30 23:52:11 -07:00
committed by GitHub
parent 1d43e46f99
commit e85404a9c5

View File

@@ -38,7 +38,7 @@ Promise.all(
globalThis.__pluginPackageJson__.push(packageJson);
logger.debug(`registering plugin ${pluginName}`);
logger.debug(`package.json: ${packageJson}`);
if (!release && process.env.NODE_ENV === 'production') {
if (!release && !runtimeConfig.enablePlugin) {
return Promise.resolve();
}
const baseURL = url;