@absolutejs/absolute 0.19.0-beta.302 → 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/build.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,7 +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 code = isModule ? compileSvelteModule(raw, filePath) : compileSvelteComponent(raw, 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);
205641
205646
  return rewriteImports2(code, filePath, projectRoot, rewriter, frameworkDirs);
205642
205647
  }, compileVueTemplate = (descriptor, compiledScript, filePath, componentId) => {
205643
205648
  const scriptContent = compiledScript.content;
@@ -205959,6 +205964,7 @@ var init_moduleServer = __esm(() => {
205959
205964
  init_resolvePackageImport();
205960
205965
  init_islandBindingCompat();
205961
205966
  init_sourceMetadata();
205967
+ init_lowerIslandSyntax();
205962
205968
  init_transformCache();
205963
205969
  jsTranspiler2 = new Bun.Transpiler({
205964
205970
  loader: "js",
@@ -208027,5 +208033,5 @@ export {
208027
208033
  build
208028
208034
  };
208029
208035
 
208030
- //# debugId=D1733B0AAFD6425164756E2164756E21
208036
+ //# debugId=0E7BC6009F22573D64756E2164756E21
208031
208037
  //# sourceMappingURL=build.js.map