File tree Expand file tree Collapse file tree 5 files changed +9
-2
lines changed Expand file tree Collapse file tree 5 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 73
73
"@babel/generator" : " 7.24.7" ,
74
74
"@babel/helper-annotate-as-pure" : " 7.24.7" ,
75
75
"@babel/helper-split-export-declaration" : " 7.24.7" ,
76
+ "@babel/plugin-syntax-import-attributes" : " 7.24.7" ,
76
77
"@babel/plugin-transform-async-generator-functions" : " 7.24.7" ,
77
78
"@babel/plugin-transform-async-to-generator" : " 7.24.7" ,
78
79
"@babel/plugin-transform-runtime" : " 7.24.7" ,
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ ts_library(
67
67
"@npm//@babel/core" ,
68
68
"@npm//@babel/helper-annotate-as-pure" ,
69
69
"@npm//@babel/helper-split-export-declaration" ,
70
+ "@npm//@babel/plugin-syntax-import-attributes" ,
70
71
"@npm//@inquirer/confirm" ,
71
72
"@npm//@types/babel__core" ,
72
73
"@npm//@types/less" ,
Original file line number Diff line number Diff line change 23
23
"@babel/core" : " 7.24.7" ,
24
24
"@babel/helper-annotate-as-pure" : " 7.24.7" ,
25
25
"@babel/helper-split-export-declaration" : " 7.24.7" ,
26
+ "@babel/plugin-syntax-import-attributes" : " 7.24.7" ,
26
27
"@inquirer/confirm" : " 3.1.12" ,
27
28
"@vitejs/plugin-basic-ssl" : " 1.1.0" ,
28
29
"ansi-colors" : " 4.1.3" ,
Original file line number Diff line number Diff line change @@ -60,7 +60,9 @@ async function transformWithBabel(
60
60
options . sourcemap &&
61
61
( ! ! options . thirdPartySourcemaps || ! / [ \\ / ] n o d e _ m o d u l e s [ \\ / ] / . test ( filename ) ) ;
62
62
63
- const plugins : PluginItem [ ] = [ ] ;
63
+ // @ts -expect-error Import attribute syntax plugin does not currently have type definitions
64
+ const { default : importAttributePlugin } = await import ( '@babel/plugin-syntax-import-attributes' ) ;
65
+ const plugins : PluginItem [ ] = [ importAttributePlugin ] ;
64
66
65
67
// Lazy load the linker plugin only when linking is required
66
68
if ( shouldLink ) {
Original file line number Diff line number Diff line change @@ -399,6 +399,7 @@ __metadata:
399
399
"@babel/core": "npm:7.24.7"
400
400
"@babel/helper-annotate-as-pure": "npm:7.24.7"
401
401
"@babel/helper-split-export-declaration": "npm:7.24.7"
402
+ "@babel/plugin-syntax-import-attributes": "npm:7.24.7"
402
403
"@inquirer/confirm": "npm:3.1.12"
403
404
"@vitejs/plugin-basic-ssl": "npm:1.1.0"
404
405
ansi-colors: "npm:4.1.3"
@@ -657,6 +658,7 @@ __metadata:
657
658
"@babel/generator": "npm:7.24.7"
658
659
"@babel/helper-annotate-as-pure": "npm:7.24.7"
659
660
"@babel/helper-split-export-declaration": "npm:7.24.7"
661
+ "@babel/plugin-syntax-import-attributes": "npm:7.24.7"
660
662
"@babel/plugin-transform-async-generator-functions": "npm:7.24.7"
661
663
"@babel/plugin-transform-async-to-generator": "npm:7.24.7"
662
664
"@babel/plugin-transform-runtime": "npm:7.24.7"
@@ -1487,7 +1489,7 @@ __metadata:
1487
1489
languageName: node
1488
1490
linkType: hard
1489
1491
1490
- "@babel/plugin-syntax-import-attributes@npm:^7.24.7":
1492
+ "@babel/plugin-syntax-import-attributes@npm:7.24.7, @babel/plugin-syntax-import-attributes@npm: ^7.24.7":
1491
1493
version: 7.24.7
1492
1494
resolution: "@babel/plugin-syntax-import-attributes@npm:7.24.7"
1493
1495
dependencies:
You can’t perform that action at this time.
0 commit comments