@marko/compiler 5.38.0 → 5.38.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/config.d.ts CHANGED
@@ -24,7 +24,7 @@ declare const Config: {
24
24
  hydrateIncludeImports?: RegExp | ((request: string) => boolean);
25
25
  hydrateInit?: boolean;
26
26
  optimize?: boolean;
27
- optimizeRegistryId?: (request: string) => string | number;
27
+ optimizeKnownTemplates?: string[];
28
28
  cache?: Map<unknown, unknown>;
29
29
  hot?: boolean;
30
30
  /** @deprecated */
package/dist/config.js CHANGED
@@ -167,6 +167,7 @@ var _lassoPackageRoot = require("lasso-package-root");
167
167
 
168
168
 
169
169
 
170
+
170
171
 
171
172
 
172
173
  var _config = _interopRequireDefault(require("./taglib/config"));const config = { // The default output mode for compiled templates
@@ -205,9 +206,10 @@ var _config = _interopRequireDefault(require("./taglib/config"));const config =
205
206
  * Enables production mode optimizations if true, or not if false.
206
207
  * If left as undefined checks for env === "production".
207
208
  */optimize: undefined, /**
208
- * If `optimize` is enabled this function will be called to resolve the "template id" used for Marko's
209
- * hydration registry.
210
- */optimizeRegistryId: undefined, /**
209
+ * If `optimize` is enabled you can provide an array of template paths which the compiler will
210
+ * use to generate shorter registry/template ids using incrementing ids. This can only be used
211
+ * if the same `optimizeKnownTemplates` are used for both server and client compilations.
212
+ */optimizeKnownTemplates: undefined, /**
211
213
  * This option should be set if `hydrate` output is specified.
212
214
  * Maps a virtual dependency to a resolved file which can be implemented
213
215
  * for specific bundlers.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marko/compiler",
3
- "version": "5.38.0",
3
+ "version": "5.38.1",
4
4
  "description": "Marko template to JS compiler.",
5
5
  "keywords": [
6
6
  "babel",
@@ -66,7 +66,7 @@
66
66
  "@babel/traverse": "^7.25.9",
67
67
  "@babel/types": "^7.26.0",
68
68
  "@luxass/strip-json-comments": "^1.3.2",
69
- "@marko/babel-utils": "^6.6.0",
69
+ "@marko/babel-utils": "^6.6.1",
70
70
  "complain": "^1.6.1",
71
71
  "he": "^1.2.0",
72
72
  "htmljs-parser": "^5.5.2",