sku 14.12.0 → 14.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -151,6 +151,7 @@ export declare const createSkuContext: ({ configPath, port: portArg, strictPort,
|
|
|
151
151
|
skipPackageCompatibilityCompilation: string[];
|
|
152
152
|
externalizeNodeModules: boolean;
|
|
153
153
|
defaultClientEntry: string;
|
|
154
|
+
cjsInteropDependencies: string[];
|
|
154
155
|
};
|
|
155
156
|
type ExtraSkuContextOptions = {
|
|
156
157
|
convertLoadable?: boolean;
|
|
@@ -27,6 +27,7 @@ const generateTypeScriptPaths = (pathAliases) => {
|
|
|
27
27
|
}
|
|
28
28
|
return typeScriptPaths;
|
|
29
29
|
};
|
|
30
|
+
const defaultCjsInteropDependencies = ['@apollo/client', 'lodash'];
|
|
30
31
|
let storedSkuContext;
|
|
31
32
|
export const getSkuContext = (skuContextOptions = {}) => {
|
|
32
33
|
if (storedSkuContext) {
|
|
@@ -196,5 +197,9 @@ export const createSkuContext = ({ configPath, port: portArg, strictPort, }) =>
|
|
|
196
197
|
skipPackageCompatibilityCompilation,
|
|
197
198
|
externalizeNodeModules,
|
|
198
199
|
defaultClientEntry,
|
|
200
|
+
cjsInteropDependencies: [
|
|
201
|
+
...defaultCjsInteropDependencies,
|
|
202
|
+
...skuConfig.__UNSAFE_EXPERIMENTAL__cjsInteropDependencies,
|
|
203
|
+
],
|
|
199
204
|
};
|
|
200
205
|
};
|
|
@@ -36,7 +36,7 @@ export const vitestHandler = async ({ skuContext, args, }) => {
|
|
|
36
36
|
setupFiles: skuContext.paths.setupTests,
|
|
37
37
|
args,
|
|
38
38
|
skuContext: {
|
|
39
|
-
cjsInteropDependencies: skuContext.
|
|
39
|
+
cjsInteropDependencies: skuContext.cjsInteropDependencies,
|
|
40
40
|
compilePackages: skuContext.skuConfig.compilePackages,
|
|
41
41
|
},
|
|
42
42
|
});
|
|
@@ -41,11 +41,7 @@ const getBaseConfig = (skuContext) => {
|
|
|
41
41
|
vocabConfig && vocabPluginVite.default({ vocabConfig }),
|
|
42
42
|
tsconfigPaths(),
|
|
43
43
|
cjsInterop({
|
|
44
|
-
dependencies:
|
|
45
|
-
'@apollo/client',
|
|
46
|
-
'lodash',
|
|
47
|
-
...skuContext.skuConfig.__UNSAFE_EXPERIMENTAL__cjsInteropDependencies,
|
|
48
|
-
],
|
|
44
|
+
dependencies: skuContext.cjsInteropDependencies,
|
|
49
45
|
}),
|
|
50
46
|
react({
|
|
51
47
|
babel: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sku",
|
|
3
|
-
"version": "14.12.
|
|
3
|
+
"version": "14.12.1",
|
|
4
4
|
"description": "Front-end development toolkit, powered by Webpack, Babel, Vanilla Extract and Jest",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"bin": {
|
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
"react-dom": "^19.1.0",
|
|
212
212
|
"type-fest": "^4.41.0",
|
|
213
213
|
"vitest": "^3.2.3",
|
|
214
|
-
"@sku-lib/vitest": "0.2.
|
|
214
|
+
"@sku-lib/vitest": "0.2.1"
|
|
215
215
|
},
|
|
216
216
|
"scripts": {
|
|
217
217
|
"postinstall": "node ./scripts/postinstall.js",
|