@marko/compiler 5.36.2 → 5.37.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 +1 -0
- package/dist/babel-plugin/index.js +1 -1
- package/dist/config.js +11 -0
- package/package.json +3 -3
package/config.d.ts
CHANGED
|
@@ -158,7 +158,7 @@ function getMarkoFile(code, fileOpts, markoOpts) {
|
|
|
158
158
|
const isSource = markoOpts.output === "source";
|
|
159
159
|
const isMigrate = markoOpts.output === "migrate";
|
|
160
160
|
const canCache = !(isSource || isMigrate);
|
|
161
|
-
const id = (0, _babelUtils.getTemplateId)(markoOpts
|
|
161
|
+
const id = (0, _babelUtils.getTemplateId)(markoOpts, filename);
|
|
162
162
|
const contentHash = canCache && (0, _crypto.createHash)("MD5").update(code).digest("hex");
|
|
163
163
|
const cacheKey = canCache && (0, _crypto.createHash)("MD5").update(id).digest("hex");
|
|
164
164
|
|
package/dist/config.js
CHANGED
|
@@ -159,6 +159,13 @@ var _lassoPackageRoot = require("lasso-package-root");
|
|
|
159
159
|
|
|
160
160
|
|
|
161
161
|
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
162
169
|
|
|
163
170
|
|
|
164
171
|
|
|
@@ -203,6 +210,10 @@ var _config = _interopRequireDefault(require("./taglib/config"));const config =
|
|
|
203
210
|
* Enables production mode optimizations if true, or not if false.
|
|
204
211
|
* If left as undefined checks for env === "production".
|
|
205
212
|
*/optimize: undefined, /**
|
|
213
|
+
* If `optimize` is enabled you can provide a Map which the compiler will
|
|
214
|
+
* use to store shorter registry/template id's in. This can only be used
|
|
215
|
+
* if the same `optimizedRegistryIds` are used for both server and client compilations.
|
|
216
|
+
*/optimizedRegistryIds: undefined, /**
|
|
206
217
|
* This option should be set if `hydrate` output is specified.
|
|
207
218
|
* Maps a virtual dependency to a resolved file which can be implemented
|
|
208
219
|
* for specific bundlers.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marko/compiler",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.37.1",
|
|
4
4
|
"description": "Marko template to JS compiler.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"babel",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@babel/traverse": "^7.24.1",
|
|
67
67
|
"@babel/types": "^7.24.0",
|
|
68
68
|
"@luxass/strip-json-comments": "^1.2.0",
|
|
69
|
-
"@marko/babel-utils": "^6.
|
|
69
|
+
"@marko/babel-utils": "^6.5.0",
|
|
70
70
|
"complain": "^1.6.0",
|
|
71
71
|
"he": "^1.2.0",
|
|
72
72
|
"htmljs-parser": "^5.5.2",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"source-map-support": "^0.5.21"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@marko/translator-default": "^6.0.
|
|
83
|
+
"@marko/translator-default": "^6.0.2"
|
|
84
84
|
},
|
|
85
85
|
"publishConfig": {
|
|
86
86
|
"access": "public"
|