sku 15.12.0 → 15.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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region package.json
|
|
2
|
-
var version = "15.12.
|
|
2
|
+
var version = "15.12.1";
|
|
3
3
|
var package_default = {
|
|
4
4
|
name: "sku",
|
|
5
5
|
version,
|
|
@@ -160,6 +160,7 @@ var package_default = {
|
|
|
160
160
|
"typescript": "~5.9.0",
|
|
161
161
|
"vite": "catalog:",
|
|
162
162
|
"vite-plugin-cjs-interop": "^2.4.0",
|
|
163
|
+
"vite-tsconfig-paths": "^6.1.1",
|
|
163
164
|
"webpack": "^5.105.4",
|
|
164
165
|
"webpack-bundle-analyzer": "^5.1.1",
|
|
165
166
|
"webpack-dev-server": "<=5.2.0",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { getVocabConfig } from "../../../vocab/config.mjs";
|
|
2
2
|
import { skuPlugin } from "../../skuPlugin.mjs";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
|
+
import tsconfigPaths from "vite-tsconfig-paths";
|
|
4
5
|
import { vitePluginVocab } from "@vocab/vite";
|
|
5
6
|
import { cjsInterop } from "vite-plugin-cjs-interop";
|
|
6
7
|
import react from "@vitejs/plugin-react";
|
|
@@ -25,11 +26,16 @@ const createConfig = (skuContext, environment) => {
|
|
|
25
26
|
}]
|
|
26
27
|
];
|
|
27
28
|
if (skuContext.displayNamesProd) prodBabelPlugins.push(require.resolve("@sku-lib/babel-plugin-display-name"));
|
|
29
|
+
const TSCONFIG_PLUGIN_NAME = "sku-tsconfig-paths";
|
|
28
30
|
return {
|
|
29
|
-
resolve: {
|
|
31
|
+
resolve: {},
|
|
30
32
|
plugins: [
|
|
31
33
|
skuContext.vitePlugins,
|
|
32
34
|
vocabConfig && vitePluginVocab({ vocabConfig }),
|
|
35
|
+
{
|
|
36
|
+
...tsconfigPaths(),
|
|
37
|
+
name: TSCONFIG_PLUGIN_NAME
|
|
38
|
+
},
|
|
33
39
|
cjsInterop({
|
|
34
40
|
dependencies: skuContext.serveCjsInteropDependencies,
|
|
35
41
|
apply: "serve"
|
|
@@ -40,7 +46,7 @@ const createConfig = (skuContext, environment) => {
|
|
|
40
46
|
}),
|
|
41
47
|
react(),
|
|
42
48
|
babel({ plugins: [require.resolve("babel-plugin-macros"), ...isProductionBuild ? prodBabelPlugins : []] }),
|
|
43
|
-
vanillaExtractPlugin(),
|
|
49
|
+
vanillaExtractPlugin({ unstable_pluginFilter: ({ name }) => name === TSCONFIG_PLUGIN_NAME }),
|
|
44
50
|
skuPlugin({
|
|
45
51
|
skuContext,
|
|
46
52
|
environment
|
|
@@ -11,14 +11,11 @@ const configPlugin = ({ skuContext }) => ({
|
|
|
11
11
|
config: () => ({
|
|
12
12
|
publicDir: false,
|
|
13
13
|
root: process.cwd(),
|
|
14
|
-
resolve: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
__sku_alias__renderEntry: skuContext.paths.renderEntry
|
|
20
|
-
}
|
|
21
|
-
},
|
|
14
|
+
resolve: { alias: {
|
|
15
|
+
__sku_alias__clientEntry: skuContext.paths.clientEntry,
|
|
16
|
+
__sku_alias__serverEntry: skuContext.paths.serverEntry,
|
|
17
|
+
__sku_alias__renderEntry: skuContext.paths.renderEntry
|
|
18
|
+
} },
|
|
22
19
|
define: { "process.env.NODE_ENV": JSON.stringify(process.env.NODE_ENV) },
|
|
23
20
|
optimizeDeps: {
|
|
24
21
|
entries: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sku",
|
|
3
|
-
"version": "15.12.
|
|
3
|
+
"version": "15.12.1",
|
|
4
4
|
"description": "Front-end development toolkit, powered by Webpack, Babel, Vanilla Extract and Jest",
|
|
5
5
|
"types": "./dist/index.d.mts",
|
|
6
6
|
"bin": {
|
|
@@ -164,6 +164,7 @@
|
|
|
164
164
|
"typescript": "~5.9.0",
|
|
165
165
|
"vite": "^8.0.1",
|
|
166
166
|
"vite-plugin-cjs-interop": "^2.4.0",
|
|
167
|
+
"vite-tsconfig-paths": "^6.1.1",
|
|
167
168
|
"webpack": "^5.105.4",
|
|
168
169
|
"webpack-bundle-analyzer": "^5.1.1",
|
|
169
170
|
"webpack-dev-server": "<=5.2.0",
|