Ensure that the found context is active before pushing it.

This commit is contained in:
Logan Smyth
2016-03-01 08:14:14 -08:00
parent b1477a3e8c
commit f2fea017c6
4 changed files with 48 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
import foo from 'foo';
import { something } from 'bar';
const anything = {};
export * from 'bar';

View File

@@ -0,0 +1,31 @@
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _bar = require('bar');
var _loop = function (_key2) {
if (_key2 === "default") return 'continue';
Object.defineProperty(exports, _key2, {
enumerable: true,
get: function () {
return _bar[_key2];
}
});
};
for (var _key2 in _bar) {
var _ret = _loop(_key2);
if (_ret === 'continue') continue;
}
var _foo = require('foo');
var _foo2 = _interopRequireDefault(_foo);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var anything = {};

View File

@@ -0,0 +1,6 @@
{
"plugins": [
"transform-es2015-block-scoping",
"transform-es2015-modules-commonjs"
]
}