From c651d733a780d9443b5239c6d18e2fe5ccbdfcb9 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 20 Sep 2023 11:01:34 -0500 Subject: [PATCH] chore(deps): update build (major) (#9238) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: 三咲智子 Kevin Deng --- package.json | 8 ++-- pnpm-lock.yaml | 96 ++++++++++++++++++++++++++++++++++-------------- rollup.config.js | 11 +----- 3 files changed, 74 insertions(+), 41 deletions(-) diff --git a/package.json b/package.json index 993d04245f3..e9e7929272e 100644 --- a/package.json +++ b/package.json @@ -58,8 +58,8 @@ "devDependencies": { "@babel/parser": "^7.21.3", "@babel/types": "^7.21.3", - "@rollup/plugin-alias": "^4.0.4", - "@rollup/plugin-commonjs": "^24.1.0", + "@rollup/plugin-alias": "^5.0.0", + "@rollup/plugin-commonjs": "^25.0.4", "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-node-resolve": "^15.2.1", "@rollup/plugin-replace": "^5.0.2", @@ -91,8 +91,8 @@ "pug": "^3.0.2", "puppeteer": "~21.2.1", "rollup": "^3.29.2", - "rollup-plugin-dts": "^5.3.1", - "rollup-plugin-esbuild": "^5.0.0", + "rollup-plugin-dts": "^6.0.2", + "rollup-plugin-esbuild": "^6.0.0", "rollup-plugin-polyfill-node": "^0.12.0", "semver": "^7.5.4", "serve": "^14.2.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b8e31392ed7..40cee40614a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -15,11 +15,11 @@ importers: specifier: ^7.21.3 version: 7.21.3 '@rollup/plugin-alias': - specifier: ^4.0.4 - version: 4.0.4(rollup@3.29.2) + specifier: ^5.0.0 + version: 5.0.0(rollup@3.29.2) '@rollup/plugin-commonjs': - specifier: ^24.1.0 - version: 24.1.0(rollup@3.29.2) + specifier: ^25.0.4 + version: 25.0.4(rollup@3.29.2) '@rollup/plugin-json': specifier: ^6.0.0 version: 6.0.0(rollup@3.29.2) @@ -114,11 +114,11 @@ importers: specifier: ^3.29.2 version: 3.29.2 rollup-plugin-dts: - specifier: ^5.3.1 - version: 5.3.1(rollup@3.29.2)(typescript@5.1.6) + specifier: ^6.0.2 + version: 6.0.2(rollup@3.29.2)(typescript@5.1.6) rollup-plugin-esbuild: - specifier: ^5.0.0 - version: 5.0.0(esbuild@0.19.3)(rollup@3.29.2) + specifier: ^6.0.0 + version: 6.0.0(esbuild@0.19.3)(rollup@3.29.2) rollup-plugin-polyfill-node: specifier: ^0.12.0 version: 0.12.0(rollup@3.29.2) @@ -438,6 +438,16 @@ packages: chalk: 2.4.2 dev: true + /@babel/code-frame@7.22.13: + resolution: {integrity: sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==} + engines: {node: '>=6.9.0'} + requiresBuild: true + dependencies: + '@babel/highlight': 7.22.20 + chalk: 2.4.2 + dev: true + optional: true + /@babel/compat-data@7.21.0: resolution: {integrity: sha512-gMuZsmsgxk/ENC3O/fRw5QY8A9/uxQbbCEypnLIiYYc/qVJtEV7ouxC3EllIIwNzMqAQee5tanFabWsUOutS7g==} engines: {node: '>=6.9.0'} @@ -555,6 +565,13 @@ packages: resolution: {integrity: sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==} engines: {node: '>=6.9.0'} + /@babel/helper-validator-identifier@7.22.20: + resolution: {integrity: sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==} + engines: {node: '>=6.9.0'} + requiresBuild: true + dev: true + optional: true + /@babel/helper-validator-identifier@7.22.5: resolution: {integrity: sha512-aJXu+6lErq8ltp+JhkJUfk1MTGyuA4v7f3pA+BJ5HLfNC6nAQ0Cpi9uOquUj8Hehg0aUiHzWQbOVJGao6ztBAQ==} engines: {node: '>=6.9.0'} @@ -586,6 +603,17 @@ packages: js-tokens: 4.0.0 dev: true + /@babel/highlight@7.22.20: + resolution: {integrity: sha512-dkdMCN3py0+ksCgYmGG8jKeGA/8Tk+gJwSYYlFGxG5lmhfKNoAy004YpLxpS1W2J8m/EK2Ew+yOs9pVRwO89mg==} + engines: {node: '>=6.9.0'} + requiresBuild: true + dependencies: + '@babel/helper-validator-identifier': 7.22.20 + chalk: 2.4.2 + js-tokens: 4.0.0 + dev: true + optional: true + /@babel/highlight@7.22.5: resolution: {integrity: sha512-BSKlD1hgnedS5XRnGOljZawtag7H1yPfQp0tdNJCHoH6AZ+Pcm9VvkrK59/Yy593Ypg0zMxH2BxD1VPYUQ7UIw==} engines: {node: '>=6.9.0'} @@ -1436,8 +1464,8 @@ packages: - supports-color dev: true - /@rollup/plugin-alias@4.0.4(rollup@3.29.2): - resolution: {integrity: sha512-0CaAY238SMtYAWEXXptWSR8iz8NYZnH7zNBKuJ14xFJSGwLtPgjvXYsoApAHfzYXXH1ejxpVw7WlHss3zhh9SQ==} + /@rollup/plugin-alias@5.0.0(rollup@3.29.2): + resolution: {integrity: sha512-l9hY5chSCjuFRPsnRm16twWBiSApl2uYFLsepQYwtBuAxNMQ/1dJqADld40P0Jkqm65GRTLy/AC6hnpVebtLsA==} engines: {node: '>=14.0.0'} peerDependencies: rollup: ^1.20.0||^2.0.0||^3.0.0 @@ -1449,8 +1477,8 @@ packages: slash: 4.0.0 dev: true - /@rollup/plugin-commonjs@24.1.0(rollup@3.29.2): - resolution: {integrity: sha512-eSL45hjhCWI0jCCXcNtLVqM5N1JlBGvlFfY0m6oOYnLCJ6N0qEXoZql4sY2MOUArzhH4SA/qBpTxvvZp2Sc+DQ==} + /@rollup/plugin-commonjs@25.0.4(rollup@3.29.2): + resolution: {integrity: sha512-L92Vz9WUZXDnlQQl3EwbypJR4+DM2EbsO+/KOcEkP4Mc6Ct453EeDB2uH9lgRwj4w5yflgNpq9pHOiY8aoUXBQ==} engines: {node: '>=14.0.0'} peerDependencies: rollup: ^2.68.0||^3.0.0 @@ -1557,6 +1585,21 @@ packages: rollup: 3.29.2 dev: true + /@rollup/pluginutils@5.0.4(rollup@3.29.2): + resolution: {integrity: sha512-0KJnIoRI8A+a1dqOYLxH8vBf8bphDmty5QvIm2hqm7oFCFYKCAZWWd2hXgMibaPsNDhI0AtpYfQZJG47pt/k4g==} + engines: {node: '>=14.0.0'} + peerDependencies: + rollup: ^1.20.0||^2.0.0||^3.0.0 + peerDependenciesMeta: + rollup: + optional: true + dependencies: + '@types/estree': 1.0.0 + estree-walker: 2.0.2 + picomatch: 2.3.1 + rollup: 3.29.2 + dev: true + /@sinclair/typebox@0.27.8: resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==} dev: true @@ -2840,8 +2883,8 @@ packages: which-typed-array: 1.1.9 dev: true - /es-module-lexer@1.1.0: - resolution: {integrity: sha512-fJg+1tiyEeS8figV+fPcPpm8WqJEflG3yPU0NOm5xMvrNkuiy7HzX/Ljng4Y0hAoiw4/3hQTCFYw+ub8+a2pRA==} + /es-module-lexer@1.3.1: + resolution: {integrity: sha512-JUFAyicQV9mXc3YRxPnDlrfBKpqt6hUYzz9/boprUJHs4e4KVr3XwOF70doO6gwXUor6EWZJAyWAfKki84t20Q==} dev: true /es-set-tostringtag@2.0.1: @@ -5409,33 +5452,32 @@ packages: glob: 7.2.3 dev: true - /rollup-plugin-dts@5.3.1(rollup@3.29.2)(typescript@5.1.6): - resolution: {integrity: sha512-gusMi+Z4gY/JaEQeXnB0RUdU82h1kF0WYzCWgVmV4p3hWXqelaKuCvcJawfeg+EKn2T1Ie+YWF2OiN1/L8bTVg==} - engines: {node: '>=v14.21.3'} + /rollup-plugin-dts@6.0.2(rollup@3.29.2)(typescript@5.1.6): + resolution: {integrity: sha512-GYCCy9DyE5csSuUObktJBpjNpW2iLZMabNDIiAqzQWBl7l/WHzjvtAXevf8Lftk8EA920tuxeB/g8dM8MVMR6A==} + engines: {node: '>=v16'} peerDependencies: - rollup: ^3.0 - typescript: ^4.1 || ^5.0 + rollup: ^3.25 + typescript: ^4.5 || ^5.0 dependencies: magic-string: 0.30.3 rollup: 3.29.2 typescript: 5.1.6 optionalDependencies: - '@babel/code-frame': 7.22.10 + '@babel/code-frame': 7.22.13 dev: true - /rollup-plugin-esbuild@5.0.0(esbuild@0.19.3)(rollup@3.29.2): - resolution: {integrity: sha512-1cRIOHAPh8WQgdQQyyvFdeOdxuiyk+zB5zJ5+YOwrZP4cJ0MT3Fs48pQxrZeyZHcn+klFherytILVfE4aYrneg==} - engines: {node: '>=14.18.0', npm: '>=8.0.0'} + /rollup-plugin-esbuild@6.0.0(esbuild@0.19.3)(rollup@3.29.2): + resolution: {integrity: sha512-I4QN5DV8l0+Sb2fFhfBeEM/o0V4Rzxel0I0oxi7J2Jd3ehwWnhUXMPyc1++/lsRMmxrmOcgYtYPwvey1NzwaTA==} + engines: {node: '>=14.18.0'} peerDependencies: - esbuild: '>=0.10.1' + esbuild: '>=0.18.0' rollup: ^1.20.0 || ^2.0.0 || ^3.0.0 dependencies: - '@rollup/pluginutils': 5.0.2(rollup@3.29.2) + '@rollup/pluginutils': 5.0.4(rollup@3.29.2) debug: 4.3.4 - es-module-lexer: 1.1.0 + es-module-lexer: 1.3.1 esbuild: 0.19.3 joycon: 3.1.1 - jsonc-parser: 3.2.0 rollup: 3.29.2 transitivePeerDependencies: - supports-color diff --git a/rollup.config.js b/rollup.config.js index 5898f1f9db9..7050ba437e6 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -273,13 +273,6 @@ function createConfig(format, output, plugins = []) { return nodePlugins } - /** @satisfies {import('esbuild').TsconfigRaw} */ - const tsconfigRaw = { - compilerOptions: { - useDefineForClassFields: false - } - } - return { input: resolve(entryFile), // Global and Browser ESM builds inlines everything so that they can be @@ -299,9 +292,7 @@ function createConfig(format, output, plugins = []) { sourceMap: output.sourcemap, minify: false, target: isServerRenderer || isNodeBuild ? 'es2019' : 'es2015', - define: resolveDefine(), - // @ts-expect-error - tsconfigRaw + define: resolveDefine() }), ...resolveNodePlugins(), ...plugins