marko 5.30.2 → 5.31.0
Sign up to get free protection for your applications and to get access to all the features.
- package/docs/compiler.md +6 -0
- package/package.json +3 -3
package/docs/compiler.md
CHANGED
@@ -296,6 +296,12 @@ import "./baz.wasm";
|
|
296
296
|
|
297
297
|
For `hydrate` output, with the default `hydrateIncludeImports`, would only cause `./foo.css` to be loaded in the browser.
|
298
298
|
|
299
|
+
#### `hydrateInit`
|
300
|
+
|
301
|
+
This option is only used for `output: "hydrate"`. It defaults to `true` and causes the hydrate output to include code which tells the Marko runtime to begin hydrating any registered components.
|
302
|
+
|
303
|
+
Setting to false will disable that `init` call and allow you to generate code which _just_ imports any hydrate dependencies for a template.
|
304
|
+
|
299
305
|
#### `cache`
|
300
306
|
|
301
307
|
Type: typeof [`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) (specifically, `.get()` is required)<br>
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "marko",
|
3
|
-
"version": "5.
|
3
|
+
"version": "5.31.0",
|
4
4
|
"description": "UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.",
|
5
5
|
"keywords": [
|
6
6
|
"front-end",
|
@@ -64,8 +64,8 @@
|
|
64
64
|
"build": "babel ./src --out-dir ./dist --delete-dir-on-start --copy-files --config-file ../../babel.config.js --env-name=production"
|
65
65
|
},
|
66
66
|
"dependencies": {
|
67
|
-
"@marko/compiler": "^5.
|
68
|
-
"@marko/translator-default": "^5.
|
67
|
+
"@marko/compiler": "^5.33.0",
|
68
|
+
"@marko/translator-default": "^5.31.0",
|
69
69
|
"app-module-path": "^2.2.0",
|
70
70
|
"argly": "^1.2.0",
|
71
71
|
"browser-refresh-client": "1.1.4",
|