Skip to content

Commit

Permalink
Feat: Enable webpack caching (#160)
Browse files Browse the repository at this point in the history
* enables webpack caching

* changeset

* remove unnecessary default value

* remove unnecessary default value

---------

Co-authored-by: Brian Sokol <[email protected]>
  • Loading branch information
bsokol-wl and bsokol-wl authored Mar 26, 2024
1 parent ee8105f commit 535b62c
Show file tree
Hide file tree
Showing 12 changed files with 1,345 additions and 885 deletions.
6 changes: 6 additions & 0 deletions .changeset/quick-mice-worry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@squide/firefly-configs": patch
"@squide/webpack-configs": patch
---

Add webpack memory caching by default
2 changes: 1 addition & 1 deletion packages/firefly-configs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@workleap/swc-configs": "2.2.3",
"@workleap/tsup-configs": "3.0.4",
"@workleap/typescript-configs": "3.0.2",
"@workleap/webpack-configs": "1.4.1",
"@workleap/webpack-configs": "1.5.0",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"ts-jest": "29.1.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/webpack-configs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"@workleap/swc-configs": "2.2.3",
"@workleap/tsup-configs": "3.0.4",
"@workleap/typescript-configs": "3.0.2",
"@workleap/webpack-configs": "1.4.1",
"@workleap/webpack-configs": "1.5.0",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"tsup": "8.0.2",
Expand Down
8 changes: 2 additions & 6 deletions packages/webpack-configs/src/defineConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export function defineDevHostConfig(swcConfig: SwcConfig, applicationName: strin
const {
entry = path.resolve("./src/index.ts"),
publicPath = "auto",
cache = false,
cache,
plugins = [],
htmlWebpackPluginOptions,
features,
Expand Down Expand Up @@ -203,7 +203,6 @@ export function defineBuildHostConfig(swcConfig: SwcConfig, applicationName: str
const {
entry = path.resolve("./src/index.ts"),
publicPath = "auto",
cache = false,
plugins = [],
htmlWebpackPluginOptions,
transformers = [],
Expand All @@ -216,7 +215,6 @@ export function defineBuildHostConfig(swcConfig: SwcConfig, applicationName: str
return defineBuildConfig(swcConfig, {
entry,
publicPath,
cache,
htmlWebpackPlugin: trySetHtmlWebpackPluginPublicPath(htmlWebpackPluginOptions ?? defineDevHtmlWebpackPluginConfig()),
plugins: [
...plugins,
Expand Down Expand Up @@ -292,7 +290,7 @@ export function defineDevRemoteModuleConfig(swcConfig: SwcConfig, applicationNam
const {
entry = path.resolve("./src/register.tsx"),
publicPath = "auto",
cache = false,
cache,
plugins = [],
htmlWebpackPlugin = false,
transformers = [],
Expand Down Expand Up @@ -335,7 +333,6 @@ export function defineBuildRemoteModuleConfig(swcConfig: SwcConfig, applicationN
const {
entry = path.resolve("./src/register.tsx"),
publicPath = "auto",
cache = false,
plugins = [],
htmlWebpackPlugin = false,
transformers = [],
Expand All @@ -348,7 +345,6 @@ export function defineBuildRemoteModuleConfig(swcConfig: SwcConfig, applicationN
return defineBuildConfig(swcConfig, {
entry,
publicPath,
cache,
htmlWebpackPlugin,
plugins: [
...plugins,
Expand Down
Loading

0 comments on commit 535b62c

Please sign in to comment.