Broken bundles after upgrade to 1.2.0
Opened this issue · 1 comments
darkalor commented
After getting an update from 1.1.0 to 1.2.0 our babel bundle is not being transpiled correctly.
Note that we're using babel 6.26.
Output with 1.1.0
/******/ ([
/* 0 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var _isExtensible = __webpack_require__(1);
var _isExtensible2 = _interopRequireDefault(_isExtensible);
var _keys = __webpack_require__(2);
var _keys2 = _interopRequireDefault(_keys);
var _typeof2 = __webpack_require__(3);
var _typeof3 = _interopRequireDefault(_typeof2);
var _defineProperty = __webpack_require__(4);
var _defineProperty2 = _interopRequireDefault(_defineProperty);
var _create = __webpack_require__(5);
var _create2 = _interopRequireDefault(_create);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var testsContext = __webpack_require__(6);
var runnable = _get__("testsContext").keys();
_get__("runnable").forEach(_get__("testsContext"));
Output with 1.2.0, note the import statements that were not transpiled
/************************************************************************/
/******/ ([
/* 0 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
import _Object$isExtensible from "babel-runtime/core-js/object/is-extensible";
import _Object$keys from "babel-runtime/core-js/object/keys";
import _typeof from "babel-runtime/helpers/typeof";
import _Object$defineProperty from "babel-runtime/core-js/object/define-property";
import _Object$create from "babel-runtime/core-js/object/create";
var testsContext = __webpack_require__(1);
var runnable = _get__("testsContext").keys();
_get__("runnable").forEach(_get__("testsContext"));
mooreInteractive commented
Same. Babel 6.26, had to revert to rewire 1.1.0.