Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit 4d0e42c

Browse files
committed
allow blacklist overrides
1 parent c309e11 commit 4d0e42c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/transpiler.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,9 @@
6565
options.filename = load.address;
6666
options.code = true;
6767
options.ast = false;
68-
options.blacklist = options.blacklist || [];
69-
options.blacklist.push('react');
68+
69+
if (!options.blacklist)
70+
options.blacklist = ['react'];
7071

7172
var source = babel.transform(load.source, options).code;
7273

0 commit comments

Comments
 (0)