@marko/compiler
Advanced tools
Comparing version 5.36.2 to 5.37.0
@@ -27,2 +27,3 @@ declare const Config: { | ||
optimize?: boolean; | ||
optimizedRegistryIds?: Map<string, string>; | ||
cache?: Map<unknown, unknown>; | ||
@@ -29,0 +30,0 @@ hot?: boolean; |
@@ -161,3 +161,3 @@ "use strict";var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");exports.__esModule = true;exports.default = void 0;exports.getMarkoFile = getMarkoFile;var _crypto = require("crypto"); | ||
const canCache = !(isSource || isMigrate); | ||
const id = (0, _babelUtils.getTemplateId)(markoOpts.optimize, filename); | ||
const id = (0, _babelUtils.getTemplateId)(markoOpts, filename); | ||
const contentHash = canCache && (0, _crypto.createHash)("MD5").update(code).digest("hex"); | ||
@@ -164,0 +164,0 @@ const cacheKey = canCache && (0, _crypto.createHash)("MD5").update(id).digest("hex"); |
@@ -170,2 +170,9 @@ "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 | ||
@@ -207,2 +214,6 @@ output: "html", // Override the runtimeid used when calling `marko/components.init` in the `hydrate` output. | ||
*/optimize: undefined, /** | ||
* If `optimize` is enabled you can provide a Map which the compiler will | ||
* use to store shorter registry/template id's in. This can only be used | ||
* if the same `optimizedRegistryIds` are used for both server and client compilations. | ||
*/optimizedRegistryIds: undefined, /** | ||
* This option should be set if `hydrate` output is specified. | ||
@@ -209,0 +220,0 @@ * Maps a virtual dependency to a resolved file which can be implemented |
{ | ||
"name": "@marko/compiler", | ||
"version": "5.36.2", | ||
"version": "5.37.0", | ||
"description": "Marko template to JS compiler.", | ||
@@ -69,3 +69,3 @@ "keywords": [ | ||
"@luxass/strip-json-comments": "^1.2.0", | ||
"@marko/babel-utils": "^6.4.3", | ||
"@marko/babel-utils": "^6.5.0", | ||
"complain": "^1.6.0", | ||
@@ -72,0 +72,0 @@ "he": "^1.2.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
461694
10767
Updated@marko/babel-utils@^6.5.0