Comparing version 0.0.0-master-20241118025556 to 0.0.0-master-20241118051205
# playroom | ||
## 0.0.0-master-20241118025556 | ||
## 0.0.0-master-20241118051205 | ||
### Patch Changes | ||
- 7b4b2f0: Tighten webpack config merge rules to prevent replacing playroom webpack config with user-provided webpack config | ||
- fb14616: Restrict `playroom`'s Vanilla Extract plugin to only process playroom's `.css.ts` files | ||
When merging user-provided webpack config, a module rule's `test`, `include` and `exclude` property will all be compared. | ||
## 0.39.1 | ||
@@ -12,0 +10,0 @@ |
@@ -183,3 +183,11 @@ const fs = require('fs'); | ||
}), | ||
new VanillaExtractPlugin(), | ||
new VanillaExtractPlugin({ | ||
test: (filePath) => { | ||
// Only apply VanillaExtract plugin to playroom's source `.css.ts` files | ||
return ( | ||
/\.css\.ts$/i.test(filePath) && | ||
includePaths.some((includePath) => filePath.startsWith(includePath)) | ||
); | ||
}, | ||
}), | ||
new MiniCssExtractPlugin({ ignoreOrder: true }), | ||
@@ -209,4 +217,2 @@ ...(options.production ? [] : [new FriendlyErrorsWebpackPlugin()]), | ||
test: 'match', | ||
include: 'match', | ||
exclude: 'match', | ||
use: 'replace', | ||
@@ -213,0 +219,0 @@ }, |
{ | ||
"name": "playroom", | ||
"version": "0.0.0-master-20241118025556", | ||
"version": "0.0.0-master-20241118051205", | ||
"description": "Design with code, powered by your own component library", | ||
@@ -5,0 +5,0 @@ "main": "utils/index.js", |
2110108
7396