Skip to content

Commit 8861c53

Browse files
committed
fix: Fix removeImports errors.
1 parent 1934f86 commit 8861c53

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/utils/transform.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import { transform } from '@babel/standalone';
22
import { PluginItem } from '@babel/core';
3+
import removeImports from 'babel-plugin-transform-remove-imports';
34
import { Options } from '../';
45

56
export function babelTransform(input: string, filename: string, opts: Options = {}) {
67
const plugins: PluginItem[] = [...(opts.babelPlugins || [])];
78
if (opts.removeImports) {
8-
plugins.push(['babel-plugin-transform-remove-imports', opts.removeImports]);
9+
plugins.push([removeImports, opts.removeImports]);
910
}
1011
return transform(input, {
1112
filename,

0 commit comments

Comments
 (0)