@astrojs/compiler 0.7.4 → 0.8.3-pre.0
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/CHANGELOG.md +18 -0
- package/astro.wasm +0 -0
- package/package.json +1 -1
- package/shared/types.d.ts +6 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @astrojs/compiler
|
|
2
2
|
|
|
3
|
+
## 0.8.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 502f8b8: Adds a new property, `scripts`, to `TransformResult`
|
|
8
|
+
|
|
9
|
+
## 0.8.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- cd277e2: Fix bug with data-astro-raw detection
|
|
14
|
+
|
|
15
|
+
## 0.8.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- 3690968: Passes the Pathname to createAstro instead of import.meta.url
|
|
20
|
+
|
|
3
21
|
## 0.7.4
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/astro.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/shared/types.d.ts
CHANGED
|
@@ -13,8 +13,14 @@ export interface TransformOptions {
|
|
|
13
13
|
preprocessStyle?: (content: string, attrs: Record<string, string>) => Promise<PreprocessorResult>;
|
|
14
14
|
experimentalStaticExtraction?: boolean;
|
|
15
15
|
}
|
|
16
|
+
export interface HoistedScript {
|
|
17
|
+
src?: string;
|
|
18
|
+
code?: string;
|
|
19
|
+
type: 'external' | 'inline';
|
|
20
|
+
}
|
|
16
21
|
export interface TransformResult {
|
|
17
22
|
css: string[];
|
|
23
|
+
scripts: HoistedScript[];
|
|
18
24
|
code: string;
|
|
19
25
|
map: string;
|
|
20
26
|
}
|