Skip to content

Commit

Permalink
build: sync lockfile
Browse files Browse the repository at this point in the history
  • Loading branch information
apostolos committed Sep 6, 2024
1 parent b6de488 commit dbb93ce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 46 deletions.
23 changes: 0 additions & 23 deletions pnpm-lock.yaml

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

30 changes: 7 additions & 23 deletions rspack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ 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,
shippedProposals: true,
// 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,
Expand All @@ -36,6 +36,7 @@ const browserslistConfig = PRODUCTION
function buildConfiguration() {
/** @type {import('@rspack/cli').Configuration} */
const config = {
context: __dirname,
experiments: {
futureDefaults: true,
},
Expand Down Expand Up @@ -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,
},
Expand All @@ -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,
},
Expand Down

0 comments on commit dbb93ce

Please sign in to comment.