Skip to content

Commit

Permalink
chore(deps-dev): bump @rspack/core from 0.7.5 to 1.0.0 (#605)
Browse files Browse the repository at this point in the history
Bumps [@rspack/core](https://github.com/web-infra-dev/rspack/tree/HEAD/packages/rspack) from 0.7.5 to 1.0.0.
- [Release notes](https://github.com/web-infra-dev/rspack/releases)
- [Commits](https://github.com/web-infra-dev/rspack/commits/v1.0.0/packages/rspack)

---
updated-dependencies:
- dependency-name: "@rspack/core"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Sep 24, 2024
1 parent fd236af commit 69d8443
Show file tree
Hide file tree
Showing 4 changed files with 492 additions and 294 deletions.
3 changes: 3 additions & 0 deletions e2e/rspack/src/assets/rspack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ const path = require('path');
*/
const config = {
mode: 'production',
experiments: {
css: true,
},
externals: {
'@griffel/react': 'Griffel',
},
Expand Down
6 changes: 5 additions & 1 deletion e2e/utils/src/compareSnapshots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ function formatCSS(css: string): string {
export async function compareSnapshots(options: CompareSnapshotsOptions): Promise<void> {
const { snapshotFile, resultFile } = options;

const resultContent = formatCSS(await fs.promises.readFile(resultFile, 'utf8'));
const resultContentRaw = await fs.promises.readFile(resultFile, 'utf8');
// Remove meta info added by Rspack
const resultContentCleaned = resultContentRaw.replace(/head{--webpack-rspack-(\d+)-(\w+)-(\d+):&_(\d+);}/, '');
const resultContent = formatCSS(resultContentCleaned);

const snapshotContent = formatCSS(await fs.promises.readFile(snapshotFile, 'utf8'));

const diff = snapshotDiff(snapshotContent, resultContent, {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
"@nx/web": "19.3.2",
"@nx/webpack": "19.3.2",
"@nx/workspace": "19.3.2",
"@rspack/cli": "0.7.5",
"@rspack/core": "0.7.5",
"@rspack/cli": "1.0.6",
"@rspack/core": "1.0.6",
"@storybook/addon-essentials": "^8.1.11",
"@storybook/addon-webpack5-compiler-babel": "^3.0.3",
"@storybook/core-server": "^8.1.11",
Expand Down
Loading

0 comments on commit 69d8443

Please sign in to comment.