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:
dependabot[bot] 2023-02-09 22:10:22 +08:00 committed by GitHub
parent 31cbbce825
commit 3669d8e226
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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",

View File

@ -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,
});