Skip to content

Commit e5f0c9e

Browse files
committed
chore(build): use preserveUseDirective from rollup-plugin-swc3
1 parent bf81779 commit e5f0c9e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

rollup.config.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { defineConfig } from 'rollup';
2-
import { swc } from 'rollup-plugin-swc3';
3-
import swcPreserveDirectives from 'rollup-swc-preserve-directives';
2+
import { swc, preserveUseDirective } from 'rollup-plugin-swc3';
43
import dtsExports from 'rollup-plugin-dts';
54

65
import fse from 'fs-extra';
@@ -73,7 +72,7 @@ export default async function () {
7372
targets
7473
}
7574
}),
76-
swcPreserveDirectives()
75+
preserveUseDirective()
7776
],
7877
external,
7978
cache: true

0 commit comments

Comments
 (0)