mirror of
https://github.com/modernweb-dev/rocket.git
synced 2026-03-21 15:54:57 +00:00
Compare commits
2 Commits
@mdjs/core
...
@rocket/cl
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c009801164 | ||
|
|
60310ab3dd |
@@ -1,5 +1,13 @@
|
||||
# @rocket/cli
|
||||
|
||||
## 0.10.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 60310ab: Improve performance by initializing sax-wasm only once even when it is running in parallel
|
||||
- Updated dependencies [60310ab]
|
||||
- @rocket/eleventy-rocket-nav@0.3.1
|
||||
|
||||
## 0.10.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@rocket/cli",
|
||||
"version": "0.10.1",
|
||||
"version": "0.10.2",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
@@ -60,7 +60,7 @@
|
||||
"@rocket/building-rollup": "^0.4.0",
|
||||
"@rocket/core": "^0.1.2",
|
||||
"@rocket/eleventy-plugin-mdjs-unified": "^0.6.0",
|
||||
"@rocket/eleventy-rocket-nav": "^0.3.0",
|
||||
"@rocket/eleventy-rocket-nav": "^0.3.1",
|
||||
"@rollup/plugin-babel": "^5.2.2",
|
||||
"@rollup/plugin-node-resolve": "^11.0.1",
|
||||
"@web/config-loader": "^0.1.3",
|
||||
|
||||
@@ -243,9 +243,9 @@ async function insertResponsiveImages(html) {
|
||||
const config = getComputedConfig();
|
||||
|
||||
if (!isSetup) {
|
||||
await parser.prepareWasm(saxWasmBuffer);
|
||||
isSetup = true;
|
||||
isSetup = parser.prepareWasm(saxWasmBuffer);
|
||||
}
|
||||
await isSetup;
|
||||
|
||||
const options = {
|
||||
inputPath: this.inputPath,
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# @rocket/eleventy-rocket-nav
|
||||
|
||||
## 0.3.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 60310ab: Improve performance by initializing sax-wasm only once even when it is running in parallel
|
||||
|
||||
## 0.3.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@rocket/eleventy-rocket-nav",
|
||||
"version": "0.3.0",
|
||||
"version": "0.3.1",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
||||
@@ -97,6 +97,7 @@ function getHeadingsOfHtml(html) {
|
||||
return { headings, insertPoint };
|
||||
}
|
||||
|
||||
/** @type {boolean | Promise<unknown>} */
|
||||
let isSetup = false;
|
||||
|
||||
/**
|
||||
@@ -104,9 +105,9 @@ let isSetup = false;
|
||||
*/
|
||||
async function addPageAnchors(content) {
|
||||
if (!isSetup) {
|
||||
await parser.prepareWasm(saxWasmBuffer);
|
||||
isSetup = true;
|
||||
isSetup = parser.prepareWasm(saxWasmBuffer);
|
||||
}
|
||||
await isSetup;
|
||||
|
||||
const { headings, insertPoint } = getHeadingsOfHtml(content);
|
||||
const pageAnchorsHtml = [];
|
||||
|
||||
Reference in New Issue
Block a user