Skip to content

Commit

Permalink
upgrade rspack to 0.5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigonehring committed Feb 14, 2024
1 parent 22dc674 commit 8b4d1c7
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 56 deletions.
14 changes: 14 additions & 0 deletions cypress/config/rspack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,18 @@ const rspack = require('@rspack/core')

module.exports = {
plugins: [new rspack.ProvidePlugin({ process: 'process' })],
module: {
rules: [
{
test: /\.[tj]sx?$/,
loader: 'builtin:swc-loader',
options: {
parser: {
syntax: 'typescript',
tsx: true,
},
},
},
],
},
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"test": "jest"
},
"dependencies": {
"@rspack/cli": "^0.4.5",
"@rspack/cli": "^0.5.4",
"find-up": "6.3.0",
"local-pkg": "0.4.1",
"tslib": "^2.3.1",
Expand Down
127 changes: 72 additions & 55 deletions pnpm-lock.yaml

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

1 change: 1 addition & 0 deletions test/__snapshots__/makeDefaultRspackConfig.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ exports[`makeCypressRspackConfig should return a valid Configuration object 1`]
"scriptLoading": "defer",
"template": "path/to/indexHtmlFile",
},
"affectedHooks": undefined,
"name": "HtmlRspackPlugin",
},
CypressCTRspackPlugin {
Expand Down

0 comments on commit 8b4d1c7

Please sign in to comment.