Skip to content

Commit

Permalink
chore(deps): update dependency esbuild-loader to v3 (main) (#18883)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
  • Loading branch information
renovate[bot] and danielroe committed Feb 8, 2023
1 parent c936bc7 commit 9f3b38c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 20 deletions.
2 changes: 1 addition & 1 deletion packages/webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"css-loader": "^6.7.3",
"css-minimizer-webpack-plugin": "^4.2.2",
"cssnano": "^5.1.14",
"esbuild-loader": "^2.21.0",
"esbuild-loader": "^3.0.0",
"escape-string-regexp": "^5.0.0",
"estree-walker": "^3.0.3",
"file-loader": "^6.2.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/webpack/src/presets/esbuild.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import esbuildLoader from 'esbuild-loader'
import { EsbuildPlugin } from 'esbuild-loader'
import type { WebpackConfigContext } from '../utils/config'

export function esbuild (ctx: WebpackConfigContext) {
Expand All @@ -10,7 +10,7 @@ export function esbuild (ctx: WebpackConfigContext) {
const target = ctx.isServer ? 'es2019' : 'chrome85'

// https://github.com/nuxt/nuxt/issues/13052
config.optimization!.minimizer!.push(new (esbuildLoader as unknown as typeof import('esbuild-loader')).ESBuildMinifyPlugin())
config.optimization!.minimizer!.push(new EsbuildPlugin())

config.module!.rules!.push(
{
Expand Down
26 changes: 9 additions & 17 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9f3b38c

Please sign in to comment.