single-file-core 1.5.7 → 1.5.8

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.
@@ -410,9 +410,9 @@ function getProcessorHelperClass(utilInstance) {
410
410
  });
411
411
  const name = "scripts/" + indexResource + extension;
412
412
  if (workletOptions) {
413
- scriptElement.textContent += ` CSS.paintWorklet.addModule("${content}", ${JSON.stringify(workletOptions)});\n`;
413
+ scriptElement.textContent += ` CSS.paintWorklet.addModule("${name}", ${JSON.stringify(workletOptions)});\n`;
414
414
  } else {
415
- scriptElement.textContent += ` CSS.paintWorklet.addModule("${content}");\n`;
415
+ scriptElement.textContent += ` CSS.paintWorklet.addModule("${name}");\n`;
416
416
  }
417
417
  resources.worklets.set(indexResource, { name, workletOptions, content, extension, contentType, url: resourceURL });
418
418
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "single-file-core",
3
- "version": "1.5.7",
3
+ "version": "1.5.8",
4
4
  "description": "SingleFile Core",
5
5
  "author": "Gildas Lormeau",
6
6
  "license": "AGPL-3.0-or-later",