@windwalker-io/core 4.2.6 → 4.2.7
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/dist/next.js
CHANGED
|
@@ -121,7 +121,7 @@ function handleCloneAssets(builder2, clonePatterns) {
|
|
|
121
121
|
}
|
|
122
122
|
function handleReposition(builder2, reposition) {
|
|
123
123
|
builder2.assetFileNamesCallbacks.push((assetInfo) => {
|
|
124
|
-
const fileName = assetInfo.originalFileName;
|
|
124
|
+
const fileName = assetInfo.originalFileName || assetInfo.name || assetInfo.names[0] || "";
|
|
125
125
|
for (const base in reposition) {
|
|
126
126
|
if (match(fileName, base)) {
|
|
127
127
|
return normalize(reposition[base] + relative(removeLastGlob(base), fileName)).replace(/\\/g, "/");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@windwalker-io/core",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Windwalker Core JS package",
|
|
6
6
|
"scripts": {
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
"build:next": "vite build --config vite.next.config.ts",
|
|
10
10
|
"dev:next": "yarn build:next --watch",
|
|
11
11
|
"build:debugger": "vite build --config vite.debugger.config.ts",
|
|
12
|
-
"dev:debugger": "vite --config vite.debugger.config.ts"
|
|
12
|
+
"dev:debugger": "vite --config vite.debugger.config.ts",
|
|
13
|
+
"upgrade": "yarn up '**' -R"
|
|
13
14
|
},
|
|
14
15
|
"exports": {
|
|
15
16
|
".": "./src/index.mjs",
|
|
@@ -62,7 +62,7 @@ export function handleCloneAssets(builder: ConfigBuilder, clonePatterns: string[
|
|
|
62
62
|
|
|
63
63
|
export function handleReposition(builder: ConfigBuilder, reposition: Record<string, string>) {
|
|
64
64
|
builder.assetFileNamesCallbacks.push((assetInfo) => {
|
|
65
|
-
const fileName = assetInfo.originalFileName
|
|
65
|
+
const fileName = assetInfo.originalFileName || assetInfo.name || assetInfo.names[0] || '';
|
|
66
66
|
|
|
67
67
|
for (const base in reposition) {
|
|
68
68
|
if (match(fileName, base)) {
|