@marko/compiler
Advanced tools
Comparing version 5.37.26 to 5.38.0
@@ -27,3 +27,3 @@ declare const Config: { | ||
optimize?: boolean; | ||
optimizeKnownTemplates?: string[]; | ||
optimizeRegistryId?: (request: string) => string | number; | ||
cache?: Map<unknown, unknown>; | ||
@@ -30,0 +30,0 @@ hot?: boolean; |
@@ -172,3 +172,2 @@ "use strict";var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");exports.__esModule = true;exports.default = void 0;var _fs = _interopRequireDefault(require("fs")); | ||
var _config = _interopRequireDefault(require("./taglib/config"));const config = { // The default output mode for compiled templates | ||
@@ -210,6 +209,5 @@ output: "html", // Override the runtimeid used when calling `marko/components.init` in the `hydrate` output. | ||
*/optimize: undefined, /** | ||
* If `optimize` is enabled you can provide an array of template paths which the compiler will | ||
* use to generate shorter registry/template ids using incrementing ids. This can only be used | ||
* if the same `optimizeKnownTemplates` are used for both server and client compilations. | ||
*/optimizeKnownTemplates: undefined, /** | ||
* If `optimize` is enabled this function will be called to resolve the "template id" used for Marko's | ||
* hydration registry. | ||
*/optimizeRegistryId: undefined, /** | ||
* This option should be set if `hydrate` output is specified. | ||
@@ -216,0 +214,0 @@ * Maps a virtual dependency to a resolved file which can be implemented |
{ | ||
"name": "@marko/compiler", | ||
"version": "5.37.26", | ||
"version": "5.38.0", | ||
"description": "Marko template to JS compiler.", | ||
@@ -69,3 +69,3 @@ "keywords": [ | ||
"@luxass/strip-json-comments": "^1.3.2", | ||
"@marko/babel-utils": "^6.5.13", | ||
"@marko/babel-utils": "^6.6.0", | ||
"complain": "^1.6.1", | ||
@@ -84,3 +84,3 @@ "he": "^1.2.0", | ||
"devDependencies": { | ||
"@marko/translator-default": "^6.0.26" | ||
"@marko/translator-default": "^6.1.0" | ||
}, | ||
@@ -87,0 +87,0 @@ "publishConfig": { |
467713
10943
Updated@marko/babel-utils@^6.6.0