mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-29 18:50:00 +08:00
chore(deps-dev): bump esbuild-loader from 2.21.0 to 3.0.0 (#40663)
* chore(deps-dev): bump esbuild-loader from 2.21.0 to 3.0.0 Bumps [esbuild-loader](https://github.com/esbuild-kit/esbuild-loader) from 2.21.0 to 3.0.0. - [Release notes](https://github.com/esbuild-kit/esbuild-loader/releases) - [Commits](https://github.com/esbuild-kit/esbuild-loader/compare/v2.21.0...v3.0.0) --- updated-dependencies: - dependency-name: esbuild-loader dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * chore: rename to EsbuildPlugin --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: afc163 <afc163@gmail.com>
This commit is contained in:
parent
31cbbce825
commit
3669d8e226
@ -203,7 +203,7 @@
|
||||
"dekko": "^0.2.1",
|
||||
"dumi": "^2.0.17",
|
||||
"duplicate-package-checker-webpack-plugin": "^3.0.0",
|
||||
"esbuild-loader": "^2.13.1",
|
||||
"esbuild-loader": "^3.0.0",
|
||||
"eslint": "^8.0.0",
|
||||
"eslint-config-airbnb": "^19.0.0",
|
||||
"eslint-config-prettier": "^8.0.0",
|
||||
|
@ -2,7 +2,7 @@
|
||||
// This config is for building dist files
|
||||
const getWebpackConfig = require('@ant-design/tools/lib/getWebpackConfig');
|
||||
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
|
||||
const { ESBuildMinifyPlugin } = require('esbuild-loader');
|
||||
const { EsbuildPlugin } = require('esbuild-loader');
|
||||
const DuplicatePackageCheckerPlugin = require('duplicate-package-checker-webpack-plugin');
|
||||
|
||||
function addLocales(webpackConfig) {
|
||||
@ -33,7 +33,7 @@ if (process.env.RUN_ENV === 'PRODUCTION') {
|
||||
config.optimization.usedExports = true;
|
||||
// use esbuild
|
||||
if (process.env.ESBUILD || process.env.CSB_REPO) {
|
||||
config.optimization.minimizer[0] = new ESBuildMinifyPlugin({
|
||||
config.optimization.minimizer[0] = new EsbuildPlugin({
|
||||
target: 'es2015',
|
||||
css: true,
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user