Avoid node duplication to fix spread bug with import. (#6657)

This commit is contained in:
Logan Smyth
2017-10-31 20:37:16 -07:00
committed by GitHub
parent dbff057b8c
commit 0b3182911a
4 changed files with 11 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
import a from 'a';
a.preview(...c);

View File

@@ -0,0 +1,5 @@
"use strict";
var _a = babelHelpers.interopRequireDefault(require("a"));
_a.default.preview.apply(_a.default, babelHelpers.toConsumableArray(c));

View File

@@ -0,0 +1,3 @@
{
"plugins": ["external-helpers", "transform-spread", "transform-modules-commonjs"]
}