@astrojs/compiler 0.8.0 → 0.9.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 +22 -0
- package/astro.wasm +0 -0
- package/package.json +1 -1
- package/shared/types.d.ts +10 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @astrojs/compiler
|
|
2
2
|
|
|
3
|
+
## 0.9.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- c1a0172: changing raw_with_expression_loop in tokenizer to only handle string that has '`' differently otherwise it should treat it as normal string
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 1fa2162: Improved types for TransformResult with hoisted scripts
|
|
12
|
+
|
|
13
|
+
## 0.8.2
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- 502f8b8: Adds a new property, `scripts`, to `TransformResult`
|
|
18
|
+
|
|
19
|
+
## 0.8.1
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- cd277e2: Fix bug with data-astro-raw detection
|
|
24
|
+
|
|
3
25
|
## 0.8.0
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
package/astro.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/shared/types.d.ts
CHANGED
|
@@ -13,8 +13,18 @@ export interface TransformOptions {
|
|
|
13
13
|
preprocessStyle?: (content: string, attrs: Record<string, string>) => Promise<PreprocessorResult>;
|
|
14
14
|
experimentalStaticExtraction?: boolean;
|
|
15
15
|
}
|
|
16
|
+
export declare type HoistedScript = {
|
|
17
|
+
type: string;
|
|
18
|
+
} & ({
|
|
19
|
+
type: 'external';
|
|
20
|
+
src: string;
|
|
21
|
+
} | {
|
|
22
|
+
type: 'inline';
|
|
23
|
+
code: string;
|
|
24
|
+
});
|
|
16
25
|
export interface TransformResult {
|
|
17
26
|
css: string[];
|
|
27
|
+
scripts: HoistedScript[];
|
|
18
28
|
code: string;
|
|
19
29
|
map: string;
|
|
20
30
|
}
|