From 8e76c1c5ae34927e28cb9029309fb54ecf63ac0f Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 7 May 2021 15:29:08 +0800 Subject: [PATCH] chore: fix debug demo of site (#30427) * chore: fix debug demo of site * upgrade bisheng * upgrade bisheng --- package.json | 2 +- site/bisheng.config.js | 3 +-- webpack.config.js | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 778d14ab34..e796fc5302 100644 --- a/package.json +++ b/package.json @@ -179,7 +179,7 @@ "argos-cli": "^0.3.0", "array-move": "^3.0.0", "babel-plugin-add-react-displayname": "^0.0.5", - "bisheng": "^3.1.0-beta.1", + "bisheng": "^3.1.0-beta.4", "bisheng-plugin-description": "^0.1.4", "bisheng-plugin-react": "^1.1.2", "bisheng-plugin-toc": "^0.4.4", diff --git a/site/bisheng.config.js b/site/bisheng.config.js index db77f523ad..05583ab76c 100644 --- a/site/bisheng.config.js +++ b/site/bisheng.config.js @@ -2,7 +2,7 @@ const path = require('path'); const replaceLib = require('@ant-design/tools/lib/replaceLib'); const getWebpackConfig = require('@ant-design/tools/lib/getWebpackConfig'); const CssMinimizerPlugin = require('css-minimizer-webpack-plugin'); -const { ESBuildPlugin, ESBuildMinifyPlugin } = require('esbuild-loader'); +const { ESBuildMinifyPlugin } = require('esbuild-loader'); const { version } = require('../package.json'); const themeConfig = require('./themeConfig'); @@ -83,7 +83,6 @@ module.exports = { }; } else if (process.env.ESBUILD) { // use esbuild - config.plugins.push(new ESBuildPlugin()); config.optimization.minimizer = [ new ESBuildMinifyPlugin({ target: 'es2015', diff --git a/webpack.config.js b/webpack.config.js index d22aad0eaa..13ebb6138b 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -3,7 +3,7 @@ const getWebpackConfig = require('@ant-design/tools/lib/getWebpackConfig'); const IgnoreEmitPlugin = require('ignore-emit-webpack-plugin'); const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer'); -const { ESBuildPlugin, ESBuildMinifyPlugin } = require('esbuild-loader'); +const { ESBuildMinifyPlugin } = require('esbuild-loader'); const darkVars = require('./scripts/dark-vars'); const compactVars = require('./scripts/compact-vars'); @@ -99,7 +99,6 @@ if (process.env.RUN_ENV === 'PRODUCTION') { config.optimization.usedExports = true; // use esbuild if (process.env.ESBUILD || process.env.CSB_REPO) { - config.plugins.push(new ESBuildPlugin()); config.optimization.minimizer[0] = new ESBuildMinifyPlugin({ target: 'es2015', });