@absolutejs/absolute 0.19.0-beta.694 → 0.19.0-beta.695

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
@@ -2448,12 +2448,27 @@ var init_lowerAwaitSlotSyntax = __esm(() => {
2448
2448
  });
2449
2449
 
2450
2450
  // src/build/stylePreprocessor.ts
2451
+ var exports_stylePreprocessor = {};
2452
+ __export(exports_stylePreprocessor, {
2453
+ stylePreprocessorPlugin: () => stylePreprocessorPlugin,
2454
+ isStylePath: () => isStylePath,
2455
+ isStyleModulePath: () => isStyleModulePath,
2456
+ isPreprocessableStylePath: () => isPreprocessableStylePath,
2457
+ getStyleBaseName: () => getStyleBaseName,
2458
+ getCssOutputExtension: () => getCssOutputExtension,
2459
+ createSvelteStylePreprocessor: () => createSvelteStylePreprocessor,
2460
+ createStyleTransformConfig: () => createStyleTransformConfig,
2461
+ createStylePreprocessorPlugin: () => createStylePreprocessorPlugin,
2462
+ compileStyleSource: () => compileStyleSource,
2463
+ compileStyleFileIfNeededSync: () => compileStyleFileIfNeededSync,
2464
+ compileStyleFileIfNeeded: () => compileStyleFileIfNeeded
2465
+ });
2451
2466
  import { existsSync as existsSync5, readFileSync as readFileSync3 } from "fs";
2452
2467
  import { readFile } from "fs/promises";
2453
2468
  import { createRequire } from "module";
2454
2469
  import { dirname as dirname3, extname as extname3, isAbsolute, join as join5, relative as relative3, resolve as resolve6 } from "path";
2455
2470
  import { fileURLToPath } from "url";
2456
- var STYLE_EXTENSION_PATTERN, STYLE_MODULE_EXTENSION_PATTERN, STYLE_LANGUAGE_PATTERN, importOptionalPeer, requireOptionalPeer, requireFromCwd, isPreprocessableStylePath = (filePath) => STYLE_EXTENSION_PATTERN.test(filePath), isStyleModulePath = (filePath) => STYLE_MODULE_EXTENSION_PATTERN.test(filePath), isStylePath = (filePath) => /\.(css|s[ac]ss|less|styl(?:us)?)$/i.test(filePath), getStyleBaseName = (filePath) => filePath.replace(/\.(css|s[ac]ss|less|styl(?:us)?)$/i, ""), getStyleLanguage = (filePathOrLanguage) => {
2471
+ var CSS_EXTENSION_PATTERN, STYLE_EXTENSION_PATTERN, STYLE_MODULE_EXTENSION_PATTERN, STYLE_LANGUAGE_PATTERN, importOptionalPeer, requireOptionalPeer, requireFromCwd, isPreprocessableStylePath = (filePath) => STYLE_EXTENSION_PATTERN.test(filePath), isStyleModulePath = (filePath) => STYLE_MODULE_EXTENSION_PATTERN.test(filePath), isStylePath = (filePath) => /\.(css|s[ac]ss|less|styl(?:us)?)$/i.test(filePath), getStyleBaseName = (filePath) => filePath.replace(/\.(css|s[ac]ss|less|styl(?:us)?)$/i, ""), getStyleLanguage = (filePathOrLanguage) => {
2457
2472
  const normalized = filePathOrLanguage.toLowerCase();
2458
2473
  if (normalized === "scss" || normalized.endsWith(".scss"))
2459
2474
  return "scss";
@@ -2464,7 +2479,13 @@ var STYLE_EXTENSION_PATTERN, STYLE_MODULE_EXTENSION_PATTERN, STYLE_LANGUAGE_PATT
2464
2479
  if (normalized === "styl" || normalized === "stylus" || normalized.endsWith(".styl") || normalized.endsWith(".stylus"))
2465
2480
  return "stylus";
2466
2481
  return null;
2467
- }, missingDependencyError = (name, filePath) => new Error(`Unable to compile ${filePath}: install optional dependency "${name}" to use this stylesheet preprocessor.`), normalizeLoadPaths = (filePath, paths = []) => [
2482
+ }, missingDependencyError = (name, filePath) => new Error(`Unable to compile ${filePath}: install optional dependency "${name}" to use this stylesheet preprocessor.`), requireOptionalPeerSync = (specifier) => {
2483
+ try {
2484
+ return requireFromCwd(specifier);
2485
+ } catch {
2486
+ return requireOptionalPeer(specifier);
2487
+ }
2488
+ }, normalizeLoadPaths = (filePath, paths = []) => [
2468
2489
  dirname3(filePath),
2469
2490
  process.cwd(),
2470
2491
  ...paths.map((path) => resolve6(process.cwd(), path))
@@ -2593,8 +2614,72 @@ var STYLE_EXTENSION_PATTERN, STYLE_MODULE_EXTENSION_PATTERN, STYLE_LANGUAGE_PATT
2593
2614
  }, getSassOptions = (config, language) => ({
2594
2615
  ...config?.sass ?? {},
2595
2616
  ...language === "scss" ? config?.scss ?? {} : {}
2596
- }), getLessOptions = (config) => config?.less ?? {}, getStylusOptions = (config) => config?.stylus ?? {}, withAdditionalData = (contents, additionalData) => additionalData ? `${additionalData}
2597
- ${contents}` : contents, createSassImporter = (entryFile, loadPaths, language, config) => ({
2617
+ }), getLessOptions = (config) => config?.less ?? {}, getStylusOptions = (config) => config?.stylus ?? {}, createStyleTransformConfig = (stylePreprocessors, postcss) => postcss === undefined ? stylePreprocessors : { ...stylePreprocessors ?? {}, postcss }, withAdditionalData = (contents, additionalData) => additionalData ? `${additionalData}
2618
+ ${contents}` : contents, normalizePostcssModule = (mod) => {
2619
+ if (mod && typeof mod === "object" && "default" in mod) {
2620
+ return mod.default ?? mod;
2621
+ }
2622
+ return mod;
2623
+ }, loadPostcssConfigFile = async (configPath) => {
2624
+ const resolved = resolve6(process.cwd(), configPath);
2625
+ const loaded = resolved.endsWith(".cjs") || resolved.endsWith(".cts") ? requireOptionalPeerSync(resolved) : await importOptionalPeer(`${new URL(`file://${resolved}`).href}?t=${Date.now()}`);
2626
+ const config = normalizePostcssModule(loaded);
2627
+ const value = typeof config === "function" ? await config({
2628
+ cwd: process.cwd(),
2629
+ env: "development"
2630
+ }) : config;
2631
+ return normalizePostcssModule(value) ?? {};
2632
+ }, normalizePostcssPlugins = (plugins) => {
2633
+ if (!plugins)
2634
+ return [];
2635
+ if (Array.isArray(plugins))
2636
+ return plugins.filter(Boolean);
2637
+ const resolved = [];
2638
+ for (const [specifier, options] of Object.entries(plugins)) {
2639
+ if (options === false)
2640
+ continue;
2641
+ const mod = normalizePostcssModule(requireOptionalPeerSync(specifier));
2642
+ const plugin = typeof mod === "function" ? mod(options === true ? undefined : options) : mod;
2643
+ if (plugin)
2644
+ resolved.push(plugin);
2645
+ }
2646
+ return resolved;
2647
+ }, resolvePostcssConfig = async (config) => {
2648
+ const inlineConfig = config?.postcss;
2649
+ if (!inlineConfig)
2650
+ return null;
2651
+ const fileConfig = inlineConfig.config ? await loadPostcssConfigFile(inlineConfig.config) : {};
2652
+ const plugins = [
2653
+ ...normalizePostcssPlugins(fileConfig.plugins),
2654
+ ...normalizePostcssPlugins(inlineConfig.plugins)
2655
+ ];
2656
+ if (plugins.length === 0)
2657
+ return null;
2658
+ return {
2659
+ options: {
2660
+ ...fileConfig.options ?? {},
2661
+ ...inlineConfig.options ?? {}
2662
+ },
2663
+ plugins
2664
+ };
2665
+ }, runPostcss = async (css, filePath, config) => {
2666
+ const postcssConfig = await resolvePostcssConfig(config);
2667
+ if (!postcssConfig)
2668
+ return css;
2669
+ let postcssModule;
2670
+ try {
2671
+ postcssModule = await importOptionalPeer("postcss");
2672
+ } catch {
2673
+ throw missingDependencyError("postcss", filePath);
2674
+ }
2675
+ const postcss = postcssModule.default ?? postcssModule;
2676
+ const result = await postcss(postcssConfig.plugins).process(css, {
2677
+ from: filePath,
2678
+ map: false,
2679
+ ...postcssConfig.options
2680
+ });
2681
+ return result.css;
2682
+ }, createSassImporter = (entryFile, loadPaths, language, config) => ({
2598
2683
  canonicalize(specifier, options) {
2599
2684
  const fromDirectory = options.containingUrl ? dirname3(fileURLToPath(options.containingUrl)) : dirname3(entryFile);
2600
2685
  const resolved = resolveImportPath(specifier, fromDirectory, loadPaths, language, config);
@@ -2673,7 +2758,7 @@ ${contents}` : contents, createSassImporter = (entryFile, loadPaths, language, c
2673
2758
  syntax: language === "sass" ? "indented" : "scss",
2674
2759
  url: new URL(`file://${filePath}`)
2675
2760
  });
2676
- return result.css;
2761
+ return runPostcss(result.css, filePath, config);
2677
2762
  }
2678
2763
  if (language === "less") {
2679
2764
  const options = getLessOptions(config);
@@ -2698,15 +2783,15 @@ ${contents}` : contents, createSassImporter = (entryFile, loadPaths, language, c
2698
2783
  createLessFileManager(filePath, loadPaths, config)
2699
2784
  ]
2700
2785
  });
2701
- return result.css;
2786
+ return runPostcss(result.css, filePath, config);
2702
2787
  }
2703
2788
  if (language === "stylus") {
2704
2789
  const options = getStylusOptions(config);
2705
2790
  const loadPaths = normalizeLoadPaths(filePath, options.paths);
2706
2791
  const contents = withAdditionalData(preprocessLoadedStyle(rawContents, filePath, filePath, loadPaths, "stylus", config), options.additionalData);
2707
- return renderStylus(contents, filePath, loadPaths, options);
2792
+ return runPostcss(await renderStylus(contents, filePath, loadPaths, options), filePath, config);
2708
2793
  }
2709
- return rawContents;
2794
+ return runPostcss(rawContents, filePath, config);
2710
2795
  }, createStylePreprocessorPlugin = (config) => ({
2711
2796
  name: "absolute-style-preprocessor",
2712
2797
  setup(build) {
@@ -2742,6 +2827,10 @@ ${contents}` : contents, createSassImporter = (entryFile, loadPaths, language, c
2742
2827
  loader: "css"
2743
2828
  };
2744
2829
  });
2830
+ build.onLoad({ filter: CSS_EXTENSION_PATTERN }, async ({ path }) => ({
2831
+ contents: await compileStyleSource(path, undefined, undefined, config),
2832
+ loader: "css"
2833
+ }));
2745
2834
  }
2746
2835
  }), stylePreprocessorPlugin, createSvelteStylePreprocessor = (config) => ({
2747
2836
  style: async ({
@@ -2759,11 +2848,46 @@ ${contents}` : contents, createSassImporter = (entryFile, loadPaths, language, c
2759
2848
  }
2760
2849
  }), compileStyleFileIfNeeded = async (filePath, config) => {
2761
2850
  if (!isPreprocessableStylePath(filePath)) {
2762
- return readFile(filePath, "utf-8");
2851
+ return runPostcss(await readFile(filePath, "utf-8"), filePath, config);
2763
2852
  }
2764
2853
  return compileStyleSource(filePath, undefined, undefined, config);
2765
- };
2854
+ }, compileStyleFileIfNeededSync = (filePath, config) => {
2855
+ const rawContents = readFileSync3(filePath, "utf-8");
2856
+ const language = getStyleLanguage(filePath);
2857
+ if (config?.postcss) {
2858
+ throw new Error(`Unable to compile ${filePath}: PostCSS preprocessing is async-only.`);
2859
+ }
2860
+ if (language === "scss" || language === "sass") {
2861
+ const options = getSassOptions(config, language);
2862
+ const packageName = options.implementation ?? "sass";
2863
+ let sass;
2864
+ try {
2865
+ sass = requireOptionalPeerSync(packageName);
2866
+ } catch {
2867
+ throw missingDependencyError(packageName, filePath);
2868
+ }
2869
+ const contents = withAdditionalData(rawContents, options.additionalData);
2870
+ const loadPaths = normalizeLoadPaths(filePath, options.loadPaths);
2871
+ return sass.compileString(contents, {
2872
+ importers: [
2873
+ createSassImporter(filePath, loadPaths, language, config)
2874
+ ],
2875
+ loadPaths,
2876
+ style: "expanded",
2877
+ syntax: language === "sass" ? "indented" : "scss",
2878
+ url: new URL(`file://${filePath}`)
2879
+ }).css;
2880
+ }
2881
+ if (language === "less") {
2882
+ throw new Error(`Unable to compile ${filePath}: Less styleUrl preprocessing is async-only. Import the Less file from a bundled entrypoint or use SCSS/CSS for Angular styleUrl.`);
2883
+ }
2884
+ if (language === "stylus") {
2885
+ throw new Error(`Unable to compile ${filePath}: Stylus styleUrl preprocessing is async-only. Import the Stylus file from a bundled entrypoint or use SCSS/CSS for Angular styleUrl.`);
2886
+ }
2887
+ return rawContents;
2888
+ }, getCssOutputExtension = (filePath) => isPreprocessableStylePath(filePath) ? ".css" : extname3(filePath);
2766
2889
  var init_stylePreprocessor = __esm(() => {
2890
+ CSS_EXTENSION_PATTERN = /\.css$/i;
2767
2891
  STYLE_EXTENSION_PATTERN = /\.(s[ac]ss|less|styl(?:us)?)$/i;
2768
2892
  STYLE_MODULE_EXTENSION_PATTERN = /\.module\.(s[ac]ss|less|styl(?:us)?)$/i;
2769
2893
  STYLE_LANGUAGE_PATTERN = /^(s[ac]ss|less|styl(?:us)?)$/i;
@@ -6995,6 +7119,7 @@ ${content.slice(firstUseIdx)}`;
6995
7119
  vueDirectory,
6996
7120
  stylesConfig,
6997
7121
  stylePreprocessors,
7122
+ postcss,
6998
7123
  tailwind,
6999
7124
  options,
7000
7125
  incrementalFiles,
@@ -7004,7 +7129,8 @@ ${content.slice(firstUseIdx)}`;
7004
7129
  const projectRoot = cwd();
7005
7130
  await resolveAbsoluteVersion();
7006
7131
  const isIncremental = incrementalFiles && incrementalFiles.length > 0;
7007
- const stylePreprocessorPlugin2 = createStylePreprocessorPlugin(stylePreprocessors);
7132
+ const styleTransformConfig = createStyleTransformConfig(stylePreprocessors, postcss);
7133
+ const stylePreprocessorPlugin2 = createStylePreprocessorPlugin(styleTransformConfig);
7008
7134
  const normalizedIncrementalFiles = incrementalFiles?.map(normalizePath);
7009
7135
  const throwOnError = options?.throwOnError === true;
7010
7136
  const hmr = options?.injectHMR === true;
@@ -7200,28 +7326,28 @@ ${content.slice(firstUseIdx)}`;
7200
7326
  { vueClientPaths: islandVueClientPaths },
7201
7327
  { clientPaths: islandAngularClientPaths }
7202
7328
  ] = await Promise.all([
7203
- shouldCompileSvelte ? Promise.resolve().then(() => (init_compileSvelte(), exports_compileSvelte)).then((mod) => mod.compileSvelte(svelteEntries, svelteDir, new Map, hmr, stylePreprocessors)) : {
7329
+ shouldCompileSvelte ? Promise.resolve().then(() => (init_compileSvelte(), exports_compileSvelte)).then((mod) => mod.compileSvelte(svelteEntries, svelteDir, new Map, hmr, styleTransformConfig)) : {
7204
7330
  svelteClientPaths: [...emptyStringArray],
7205
7331
  svelteIndexPaths: [...emptyStringArray],
7206
7332
  svelteServerPaths: [...emptyStringArray]
7207
7333
  },
7208
- shouldCompileVue ? Promise.resolve().then(() => (init_compileVue(), exports_compileVue)).then((mod) => mod.compileVue(vueEntries, vueDir, hmr, stylePreprocessors)) : {
7334
+ shouldCompileVue ? Promise.resolve().then(() => (init_compileVue(), exports_compileVue)).then((mod) => mod.compileVue(vueEntries, vueDir, hmr, styleTransformConfig)) : {
7209
7335
  vueClientPaths: [...emptyStringArray],
7210
7336
  vueCssPaths: [...emptyStringArray],
7211
7337
  vueIndexPaths: [...emptyStringArray],
7212
7338
  vueServerPaths: [...emptyStringArray]
7213
7339
  },
7214
- shouldCompileAngular ? Promise.resolve().then(() => (init_compileAngular(), exports_compileAngular)).then((mod) => mod.compileAngular(angularEntries, angularDir, hmr, stylePreprocessors)) : {
7340
+ shouldCompileAngular ? Promise.resolve().then(() => (init_compileAngular(), exports_compileAngular)).then((mod) => mod.compileAngular(angularEntries, angularDir, hmr, styleTransformConfig)) : {
7215
7341
  clientPaths: [...emptyStringArray],
7216
7342
  serverPaths: [...emptyStringArray]
7217
7343
  },
7218
- shouldCompileIslandSvelte ? Promise.resolve().then(() => (init_compileSvelte(), exports_compileSvelte)).then((mod) => mod.compileSvelte(islandSvelteSources, svelteDir, new Map, hmr, stylePreprocessors)) : {
7344
+ shouldCompileIslandSvelte ? Promise.resolve().then(() => (init_compileSvelte(), exports_compileSvelte)).then((mod) => mod.compileSvelte(islandSvelteSources, svelteDir, new Map, hmr, styleTransformConfig)) : {
7219
7345
  svelteClientPaths: [...emptyStringArray]
7220
7346
  },
7221
- shouldCompileIslandVue ? Promise.resolve().then(() => (init_compileVue(), exports_compileVue)).then((mod) => mod.compileVue(islandVueSources, vueDir, hmr, stylePreprocessors)) : {
7347
+ shouldCompileIslandVue ? Promise.resolve().then(() => (init_compileVue(), exports_compileVue)).then((mod) => mod.compileVue(islandVueSources, vueDir, hmr, styleTransformConfig)) : {
7222
7348
  vueClientPaths: [...emptyStringArray]
7223
7349
  },
7224
- shouldCompileIslandAngular ? Promise.resolve().then(() => (init_compileAngular(), exports_compileAngular)).then((mod) => mod.compileAngular(islandAngularSources, angularDir, hmr, stylePreprocessors)) : {
7350
+ shouldCompileIslandAngular ? Promise.resolve().then(() => (init_compileAngular(), exports_compileAngular)).then((mod) => mod.compileAngular(islandAngularSources, angularDir, hmr, styleTransformConfig)) : {
7225
7351
  clientPaths: [...emptyStringArray]
7226
7352
  }
7227
7353
  ]);
@@ -7253,8 +7379,8 @@ ${content.slice(firstUseIdx)}`;
7253
7379
  const vueConventionSources = collectConventionSourceFiles(conventionsMap.vue);
7254
7380
  if (svelteConventionSources.length > 0 || vueConventionSources.length > 0) {
7255
7381
  const [svelteConvResult, vueConvResult] = await Promise.all([
7256
- svelteConventionSources.length > 0 && svelteDir ? Promise.resolve().then(() => (init_compileSvelte(), exports_compileSvelte)).then((mod) => mod.compileSvelte(svelteConventionSources, svelteDir, new Map, false, stylePreprocessors)) : { svelteServerPaths: emptyStringArray },
7257
- vueConventionSources.length > 0 && vueDir ? Promise.resolve().then(() => (init_compileVue(), exports_compileVue)).then((mod) => mod.compileVue(vueConventionSources, vueDir, false, stylePreprocessors)) : { vueServerPaths: emptyStringArray }
7382
+ svelteConventionSources.length > 0 && svelteDir ? Promise.resolve().then(() => (init_compileSvelte(), exports_compileSvelte)).then((mod) => mod.compileSvelte(svelteConventionSources, svelteDir, new Map, false, styleTransformConfig)) : { svelteServerPaths: emptyStringArray },
7383
+ vueConventionSources.length > 0 && vueDir ? Promise.resolve().then(() => (init_compileVue(), exports_compileVue)).then((mod) => mod.compileVue(vueConventionSources, vueDir, false, styleTransformConfig)) : { vueServerPaths: emptyStringArray }
7258
7384
  ]);
7259
7385
  const copyConventionFiles = (framework, sources, compiledPaths) => {
7260
7386
  const destDir = join19(buildPath, "conventions", framework);
@@ -9652,6 +9778,11 @@ var init_pageHandler = __esm(() => {
9652
9778
  });
9653
9779
 
9654
9780
  // src/react/pageHandler.ts
9781
+ var exports_pageHandler = {};
9782
+ __export(exports_pageHandler, {
9783
+ invalidateReactSsrCache: () => invalidateReactSsrCache,
9784
+ handleReactPageRequest: () => handleReactPageRequest
9785
+ });
9655
9786
  var ssrDirty2 = false, buildRefreshSetup = () => {
9656
9787
  if (false) {}
9657
9788
  return "window.__REFRESH_BUFFER__=[];" + "window.$RefreshReg$=function(t,i){window.__REFRESH_BUFFER__.push([t,i])};" + "window.$RefreshSig$=function(){return function(t){return t}};";
@@ -10807,7 +10938,7 @@ var init_simpleHTMXHMR = () => {};
10807
10938
  // src/dev/rebuildTrigger.ts
10808
10939
  import { existsSync as existsSync22 } from "fs";
10809
10940
  import { basename as basename13, dirname as dirname15, relative as relative12, resolve as resolve30 } from "path";
10810
- var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseErrorLocationFromMessage = (msg) => {
10941
+ var moduleServerPromise, getModuleServer = () => moduleServerPromise, getStyleTransformConfig = (config) => createStyleTransformConfig(config.stylePreprocessors, config.postcss), parseErrorLocationFromMessage = (msg) => {
10811
10942
  const pathLineCol = msg.match(/^([^\s:]+):(\d+)(?::(\d+))?/);
10812
10943
  if (pathLineCol) {
10813
10944
  const [, file3, lineStr, colStr] = pathLineCol;
@@ -11115,7 +11246,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
11115
11246
  naming: "[dir]/[name].[hash].[ext]",
11116
11247
  outdir: buildDir,
11117
11248
  plugins: [
11118
- createStylePreprocessorPlugin(state.config.stylePreprocessors)
11249
+ createStylePreprocessorPlugin(getStyleTransformConfig(state.config))
11119
11250
  ],
11120
11251
  root: clientRoot,
11121
11252
  target: "browser",
@@ -11157,7 +11288,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
11157
11288
  });
11158
11289
  }, compileAndBundleAngular = async (state, pageEntries, angularDir) => {
11159
11290
  const { compileAngular: compileAngular2 } = await Promise.resolve().then(() => (init_compileAngular(), exports_compileAngular));
11160
- const { clientPaths, serverPaths } = await compileAngular2(pageEntries, angularDir, true, state.config.stylePreprocessors);
11291
+ const { clientPaths, serverPaths } = await compileAngular2(pageEntries, angularDir, true, getStyleTransformConfig(state.config));
11161
11292
  serverPaths.forEach((serverPath) => {
11162
11293
  const fileBase = basename13(serverPath, ".js");
11163
11294
  state.manifest[toPascal(fileBase)] = resolve30(serverPath);
@@ -11250,7 +11381,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
11250
11381
  naming: "[dir]/[name].[hash].[ext]",
11251
11382
  outdir: buildDir,
11252
11383
  plugins: [
11253
- createStylePreprocessorPlugin(state.config.stylePreprocessors)
11384
+ createStylePreprocessorPlugin(getStyleTransformConfig(state.config))
11254
11385
  ],
11255
11386
  reactFastRefresh: true,
11256
11387
  root: clientRoot,
@@ -11424,7 +11555,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
11424
11555
  const { compileSvelte: compileSvelte2 } = await Promise.resolve().then(() => (init_compileSvelte(), exports_compileSvelte));
11425
11556
  const { build: bunBuild7 } = await Promise.resolve(globalThis.Bun);
11426
11557
  const clientRoot = await computeClientRoot(state.resolvedPaths);
11427
- const { svelteServerPaths, svelteIndexPaths, svelteClientPaths } = await compileSvelte2(svelteFiles, svelteDir, new Map, true, state.config.stylePreprocessors);
11558
+ const { svelteServerPaths, svelteIndexPaths, svelteClientPaths } = await compileSvelte2(svelteFiles, svelteDir, new Map, true, getStyleTransformConfig(state.config));
11428
11559
  const serverEntries = [...svelteServerPaths];
11429
11560
  const clientEntries = [...svelteIndexPaths, ...svelteClientPaths];
11430
11561
  const serverRoot = resolve30(svelteDir, "generated", "server");
@@ -11444,7 +11575,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
11444
11575
  naming: "[dir]/[name].[hash].[ext]",
11445
11576
  outdir: serverOutDir,
11446
11577
  plugins: [
11447
- createStylePreprocessorPlugin(state.config.stylePreprocessors)
11578
+ createStylePreprocessorPlugin(getStyleTransformConfig(state.config))
11448
11579
  ],
11449
11580
  root: serverRoot,
11450
11581
  target: "bun",
@@ -11456,7 +11587,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
11456
11587
  naming: "[dir]/[name].[hash].[ext]",
11457
11588
  outdir: buildDir,
11458
11589
  plugins: [
11459
- createStylePreprocessorPlugin(state.config.stylePreprocessors)
11590
+ createStylePreprocessorPlugin(getStyleTransformConfig(state.config))
11460
11591
  ],
11461
11592
  root: clientRoot,
11462
11593
  target: "browser",
@@ -12836,5 +12967,5 @@ export {
12836
12967
  build
12837
12968
  };
12838
12969
 
12839
- //# debugId=E51CE14B6945493364756E2164756E21
12970
+ //# debugId=FC044B4AB3E004F164756E2164756E21
12840
12971
  //# sourceMappingURL=build.js.map