@absolutejs/absolute 0.19.0-beta.303 → 0.19.0-beta.304

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/dist/index.js CHANGED
@@ -205610,10 +205610,13 @@ ${code}`;
205610
205610
  dev: true,
205611
205611
  filename: filePath
205612
205612
  }).js.code;
205613
- }, compileSvelteComponent = (raw, filePath, projectRoot) => {
205613
+ }, compileSvelteComponent = (raw, filePath, projectRoot, enableAsync = false) => {
205614
205614
  const compiled = svelteCompiler.compile(raw, {
205615
205615
  css: "external",
205616
205616
  dev: true,
205617
+ experimental: {
205618
+ async: enableAsync
205619
+ },
205617
205620
  filename: filePath,
205618
205621
  generate: "client",
205619
205622
  hmr: true
@@ -205637,8 +205640,9 @@ ${code}`;
205637
205640
  svelteCompiler = await import("svelte/compiler");
205638
205641
  }
205639
205642
  const isModule = filePath.endsWith(".svelte.ts") || filePath.endsWith(".svelte.js");
205640
- const source = isModule ? raw : lowerSvelteIslandSyntax(raw).code;
205641
- const code = isModule ? compileSvelteModule(source, filePath) : compileSvelteComponent(source, filePath, projectRoot);
205643
+ const loweredSource = isModule ? { code: raw, transformed: false } : lowerSvelteIslandSyntax(raw);
205644
+ const source = loweredSource.code;
205645
+ const code = isModule ? compileSvelteModule(source, filePath) : compileSvelteComponent(source, filePath, projectRoot, loweredSource.transformed);
205642
205646
  return rewriteImports2(code, filePath, projectRoot, rewriter, frameworkDirs);
205643
205647
  }, compileVueTemplate = (descriptor, compiledScript, filePath, componentId) => {
205644
205648
  const scriptContent = compiledScript.content;
@@ -215474,5 +215478,5 @@ export {
215474
215478
  ANGULAR_INIT_TIMEOUT_MS
215475
215479
  };
215476
215480
 
215477
- //# debugId=9599A488B032E0D464756E2164756E21
215481
+ //# debugId=88C58B0CBEB4B9F164756E2164756E21
215478
215482
  //# sourceMappingURL=index.js.map