@marko/compiler 5.39.5 → 5.39.6

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.
@@ -319,7 +319,7 @@ function resolveMarkoFile(file, filename) {
319
319
  const idCache = new WeakMap();
320
320
  const templateIdHashOpts = { outputLength: 5 };
321
321
  function getTemplateId(opts, request, child) {
322
- const id = (0, _path.relative)(ROOT, request);
322
+ const id = (0, _path.relative)(ROOT, request).replace(/[^a-zA-Z0-9_$./-]/g, "/");
323
323
  const optimize = typeof opts === "object" ? opts.optimize : opts;
324
324
 
325
325
  if (optimize) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marko/compiler",
3
- "version": "5.39.5",
3
+ "version": "5.39.6",
4
4
  "description": "Marko template to JS compiler.",
5
5
  "keywords": [
6
6
  "babel",
@@ -86,7 +86,7 @@
86
86
  "source-map-support": "^0.5.21"
87
87
  },
88
88
  "devDependencies": {
89
- "marko": "^5.37.5"
89
+ "marko": "^5.37.7"
90
90
  },
91
91
  "publishConfig": {
92
92
  "access": "public"