From dbb93ce053181c7ee1a5a515ff04a38a9015ec29 Mon Sep 17 00:00:00 2001 From: Apostolos Tsakpinis Date: Fri, 6 Sep 2024 04:46:54 +0300 Subject: [PATCH] build: sync lockfile --- pnpm-lock.yaml | 23 ----------------------- rspack.config.js | 30 +++++++----------------------- 2 files changed, 7 insertions(+), 46 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c2dfd8a1..97eb7f60 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -198,9 +198,6 @@ importers: shiki: specifier: 1.16.2 version: 1.16.2 - source-map-loader: - specifier: 5.0.0 - version: 5.0.0(webpack@5.94.0) typescript: specifier: 5.5.4 version: 5.5.4 @@ -3114,10 +3111,6 @@ packages: resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==} engines: {node: '>=0.10.0'} - iconv-lite@0.6.3: - resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==} - engines: {node: '>=0.10.0'} - ieee754@1.2.1: resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} @@ -4449,12 +4442,6 @@ packages: resolution: {integrity: sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==} engines: {node: '>=0.10.0'} - source-map-loader@5.0.0: - resolution: {integrity: sha512-k2Dur7CbSLcAH73sBcIkV5xjPV4SzqO1NJ7+XaQl8if3VODDUj3FNchNGpqgJSKbvUfJuhVdv8K2Eu8/TNl2eA==} - engines: {node: '>= 18.12.0'} - peerDependencies: - webpack: ^5.72.1 - source-map-support@0.5.21: resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==} @@ -8908,10 +8895,6 @@ snapshots: dependencies: safer-buffer: 2.1.2 - iconv-lite@0.6.3: - dependencies: - safer-buffer: 2.1.2 - ieee754@1.2.1: {} ignore@5.3.2: {} @@ -10268,12 +10251,6 @@ snapshots: source-map-js@1.2.0: {} - source-map-loader@5.0.0(webpack@5.94.0): - dependencies: - iconv-lite: 0.6.3 - source-map-js: 1.2.0 - webpack: 5.94.0 - source-map-support@0.5.21: dependencies: buffer-from: 1.1.2 diff --git a/rspack.config.js b/rspack.config.js index d3a1582a..18bab289 100644 --- a/rspack.config.js +++ b/rspack.config.js @@ -18,7 +18,7 @@ const env = { const browserslistConfig = PRODUCTION ? { - targets: { chrome: '79', edge: '88', firefox: '85', safari: '13' }, + targets: ['chrome >= 79', 'edge >= 88', 'firefox >= 85', 'safari >= 13'], entry: 'usage', coreJs: '3.38', loose: true, @@ -26,7 +26,7 @@ const browserslistConfig = PRODUCTION // forceAllTransforms: true, } : { - targets: 'last 1 chrome version, last 1 firefox version, last 1 safari version', + targets: ['last 1 chrome version', 'last 1 firefox version', 'last 1 safari version'], entry: 'usage', coreJs: '3.38', loose: true, @@ -36,6 +36,7 @@ const browserslistConfig = PRODUCTION function buildConfiguration() { /** @type {import('@rspack/cli').Configuration} */ const config = { + context: __dirname, experiments: { futureDefaults: true, }, @@ -68,16 +69,8 @@ function buildConfiguration() { options: { jsc: { externalHelpers: true, - parser: { - syntax: 'typescript', - }, - transform: { - react: { - runtime: 'automatic', - development: !PRODUCTION, - refresh: !PRODUCTION, - }, - }, + parser: { syntax: 'typescript' }, + transform: { react: { runtime: 'automatic', development: !PRODUCTION, refresh: !PRODUCTION } }, }, env: browserslistConfig, }, @@ -89,17 +82,8 @@ function buildConfiguration() { options: { jsc: { externalHelpers: true, - parser: { - syntax: 'typescript', - tsx: true, - }, - transform: { - react: { - runtime: 'automatic', - development: !PRODUCTION, - refresh: !PRODUCTION, - }, - }, + parser: { syntax: 'typescript', tsx: true }, + transform: { react: { runtime: 'automatic', development: !PRODUCTION, refresh: !PRODUCTION } }, }, env: browserslistConfig, },