Browse Source

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>
pull/40679/head
dependabot[bot] 2 years ago
committed by GitHub
parent
commit
3669d8e226
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      package.json
  2. 4
      webpack.config.js

2
package.json

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

4
webpack.config.js

@ -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…
Cancel
Save