@modern-js/utils 2.14.0 → 2.15.1-alpha.0
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 +2 -0
- package/dist/cjs/routes.js +1 -1
- package/dist/esm/routes.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
package/dist/cjs/routes.js
CHANGED
@@ -49,7 +49,7 @@ const getRouteId = (componentPath, routesDir, entryName) => {
|
|
49
49
|
} else {
|
50
50
|
id = `${entryName}_${pathWithoutExt}`;
|
51
51
|
}
|
52
|
-
return id;
|
52
|
+
return id.replace(/\[(.*?)\]/g, "($1)");
|
53
53
|
};
|
54
54
|
// Annotate the CommonJS export names for ESM import in node:
|
55
55
|
0 && (module.exports = {
|
package/dist/esm/routes.js
CHANGED
package/package.json
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
"modern",
|
12
12
|
"modern.js"
|
13
13
|
],
|
14
|
-
"version": "2.
|
14
|
+
"version": "2.15.1-alpha.0",
|
15
15
|
"jsnext:source": "./src/index.ts",
|
16
16
|
"types": "./dist/types/index.d.ts",
|
17
17
|
"main": "./dist/index.js",
|
@@ -230,9 +230,9 @@
|
|
230
230
|
"typescript": "^4",
|
231
231
|
"webpack": "^5.76.2",
|
232
232
|
"@types/serialize-javascript": "^5.0.1",
|
233
|
-
"@modern-js/types": "2.
|
234
|
-
"@scripts/build": "2.
|
235
|
-
"@scripts/jest-config": "2.
|
233
|
+
"@modern-js/types": "2.15.0",
|
234
|
+
"@scripts/build": "2.15.0",
|
235
|
+
"@scripts/jest-config": "2.15.0"
|
236
236
|
},
|
237
237
|
"sideEffects": false,
|
238
238
|
"scripts": {
|