File tree 6 files changed +29
-31
lines changed
6 files changed +29
-31
lines changed Original file line number Diff line number Diff line change 61
61
}
62
62
</ style >
63
63
< script type ="module ">
64
- // Todo: Switch back to loading from /src/index-fn.ts
65
- import polyfill from '/dist/css-anchor-positioning-fn.js'
64
+ import polyfill from '/src/index-fn.ts' ;
66
65
67
66
const SUPPORTS_ANCHOR_POSITIONING =
68
67
'anchorName' in document . documentElement . style ;
Original file line number Diff line number Diff line change 1
- import { type Block , type CssNode } from 'css-tree' ;
1
+ import type { Block , CssNode } from 'css-tree' ;
2
2
import walk from 'css-tree/walker' ;
3
3
4
4
import {
Original file line number Diff line number Diff line change 1
- import {
2
- type Atrule ,
3
- type Block ,
4
- type CssNode ,
5
- type Declaration ,
6
- type Identifier ,
7
- type Raw ,
8
- type Rule ,
9
- type SelectorList ,
10
- type Value ,
1
+ import type {
2
+ Atrule ,
3
+ Block ,
4
+ CssNode ,
5
+ Declaration ,
6
+ Identifier ,
7
+ Raw ,
8
+ Rule ,
9
+ SelectorList ,
10
+ Value ,
11
11
} from 'css-tree' ;
12
12
import { clone , List } from 'css-tree/utils' ;
13
13
import walk from 'css-tree/walker' ;
Original file line number Diff line number Diff line change 1
- import {
2
- type CssNode ,
3
- type Declaration ,
4
- type FunctionNode ,
5
- type Identifier ,
6
- type List ,
7
- type Percentage ,
8
- type SelectorList ,
1
+ import type {
2
+ CssNode ,
3
+ Declaration ,
4
+ FunctionNode ,
5
+ Identifier ,
6
+ List ,
7
+ Percentage ,
8
+ SelectorList ,
9
9
} from 'css-tree' ;
10
10
import walk from 'css-tree/walker' ;
11
11
import { nanoid } from 'nanoid/non-secure' ;
Original file line number Diff line number Diff line change 1
- import {
2
- type CssNode ,
3
- type Declaration ,
4
- type FunctionNode ,
5
- type Identifier ,
6
- type List ,
7
- type Selector as CssTreeSelector ,
8
- type SelectorList ,
9
- type Value ,
1
+ import type {
2
+ CssNode ,
3
+ Declaration ,
4
+ FunctionNode ,
5
+ Identifier ,
6
+ List ,
7
+ Selector as CssTreeSelector ,
8
+ SelectorList ,
9
+ Value ,
10
10
} from 'css-tree' ;
11
11
import generate from 'css-tree/generator' ;
12
12
import parse from 'css-tree/parser' ;
Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ export default defineConfig({
43
43
} ,
44
44
} ,
45
45
plugins : [ bundleStats ( ) ] ,
46
-
47
46
/**
48
47
* @see https://vitest.dev/config/#configuration
49
48
*/
You can’t perform that action at this time.
0 commit comments