full site update
This commit is contained in:
2
node_modules/astro/dist/core/compile/compile.d.ts
generated
vendored
2
node_modules/astro/dist/core/compile/compile.d.ts
generated
vendored
@@ -1,7 +1,7 @@
|
||||
import type { TransformResult } from '@astrojs/compiler';
|
||||
import type { ResolvedConfig } from 'vite';
|
||||
import type { AstroConfig } from '../../@types/astro.js';
|
||||
import type { AstroPreferences } from '../../preferences/index.js';
|
||||
import type { AstroConfig } from '../../types/public/config.js';
|
||||
import type { CompileCssResult } from './types.js';
|
||||
export interface CompileProps {
|
||||
astroConfig: AstroConfig;
|
||||
|
6
node_modules/astro/dist/core/compile/compile.js
generated
vendored
6
node_modules/astro/dist/core/compile/compile.js
generated
vendored
@@ -1,9 +1,8 @@
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { transform } from "@astrojs/compiler";
|
||||
import { normalizePath } from "vite";
|
||||
import { AggregateError, CompilerError } from "../errors/errors.js";
|
||||
import { AstroErrorData } from "../errors/index.js";
|
||||
import { resolvePath } from "../viteUtils.js";
|
||||
import { normalizePath, resolvePath } from "../viteUtils.js";
|
||||
import { createStylePreprocessor } from "./style.js";
|
||||
async function compile({
|
||||
astroConfig,
|
||||
@@ -29,13 +28,14 @@ async function compile({
|
||||
resultScopedSlot: true,
|
||||
transitionsAnimationURL: "astro/components/viewtransitions.css",
|
||||
annotateSourceFile: viteConfig.command === "serve" && astroConfig.devToolbar && astroConfig.devToolbar.enabled && await preferences.get("devToolbar.enabled"),
|
||||
renderScript: astroConfig.experimental.directRenderScript,
|
||||
renderScript: true,
|
||||
preprocessStyle: createStylePreprocessor({
|
||||
filename,
|
||||
viteConfig,
|
||||
cssPartialCompileResults,
|
||||
cssTransformErrors
|
||||
}),
|
||||
experimentalScriptOrder: astroConfig.experimental.preserveScriptOrder ?? false,
|
||||
async resolvePath(specifier) {
|
||||
return resolvePath(specifier, filename);
|
||||
}
|
||||
|
2
node_modules/astro/dist/core/compile/index.d.ts
generated
vendored
2
node_modules/astro/dist/core/compile/index.d.ts
generated
vendored
@@ -1,2 +1,2 @@
|
||||
export { compile } from './compile.js';
|
||||
export type { CompileProps, CompileResult } from './compile.js';
|
||||
export { compile } from './compile.js';
|
||||
|
3
node_modules/astro/dist/core/compile/style.js
generated
vendored
3
node_modules/astro/dist/core/compile/style.js
generated
vendored
@@ -1,6 +1,7 @@
|
||||
import fs from "node:fs";
|
||||
import { normalizePath, preprocessCSS } from "vite";
|
||||
import { preprocessCSS } from "vite";
|
||||
import { AstroErrorData, CSSError, positionAt } from "../errors/index.js";
|
||||
import { normalizePath } from "../viteUtils.js";
|
||||
function createStylePreprocessor({
|
||||
filename,
|
||||
viteConfig,
|
||||
|
Reference in New Issue
Block a user