@modern-js/utils 2.15.0 → 2.15.1-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/routes.js +1 -1
- package/dist/esm/routes.js +1 -1
- package/package.json +1 -1
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