Skip to content

Commit

Permalink
chore(clerk-js): Update Rspack and enable persistent cache (#5019)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstaley authored Jan 28, 2025
1 parent 932c8c4 commit 280ece0
Show file tree
Hide file tree
Showing 5 changed files with 189 additions and 148 deletions.
2 changes: 2 additions & 0 deletions .changeset/brown-jeans-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
2 changes: 2 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,13 @@ export default tseslint.config([
'packages/*/examples',
'playground/*',
'pnpm-lock.json',
'eslint.config.mjs',
'typedoc.config.mjs',
'vitest.workspace.mjs',
// package specific ignores
'packages/astro/src/astro-components/**/*.ts',
'packages/backend/src/runtime/**/*',
'packages/clerk-js/rspack.config.js',
'packages/shared/src/compiled/path-to-regexp/index.js',
],
},
Expand Down
8 changes: 4 additions & 4 deletions packages/clerk-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@
},
"devDependencies": {
"@clerk/ui": "workspace:*",
"@rsdoctor/rspack-plugin": "^0.4.7",
"@rspack/cli": "^1.0.14",
"@rspack/core": "^1.0.14",
"@rspack/plugin-react-refresh": "^1.0.0",
"@rsdoctor/rspack-plugin": "^0.4.13",
"@rspack/cli": "^1.2.2",
"@rspack/core": "^1.2.2",
"@rspack/plugin-react-refresh": "^1.0.1",
"@svgr/webpack": "^6.2.1",
"@types/webpack-dev-server": "^4.7.2",
"@types/webpack-env": "^1.16.4",
Expand Down
6 changes: 6 additions & 0 deletions packages/clerk-js/rspack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,12 @@ const devConfig = ({ mode, env }) => {
}
: {}),
},
cache: true,
experiments: {
cache: {
type: 'persistent',
},
},
};
};

Expand Down
Loading

0 comments on commit 280ece0

Please sign in to comment.