Closed aphofstede closed 9 months ago
Set babel dependencies to ^7.0.0. (Fixes #48) Produces a couple of issues that need project maintainer feedback.
Going through the new output files, this one looks suspicious to me (unexpected _Select var):
_Select
// test/fixtures/conditions/expected.js "use strict"; require("element-ui/lib/select/style.css"); var _select = _interopRequireDefault(require("element-ui/lib/select")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } if (a === _select["default"]) { } if (_Select) { } _Select ? 'a' : 'b'; a ? _Select : 2; _Select || 'a'; a || _Select;
Another mystery guest: (_Element)
_Element
// test/fixtures/import-all-css/expected.js "use strict"; require("element-ui/lib/style.css"); var _lib = _interopRequireDefault(require("element-ui/lib")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } console.log(_lib["default"].Button); console.log(_Element);
And one more: (same as above)
// test/fixtures/import-module/expected.js "use strict"; require("element-ui/lib/abc/style.css"); var _abc = _interopRequireDefault(require("element-ui/lib/abc")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } console.log(_abc["default"].Button); console.log(_Element);
I would expect something like var _Element = bind({})(_abc["default"]); or just console.log(_abc["default"]);?
var _Element = bind({})(_abc["default"]);
console.log(_abc["default"]);
@QingWei-Li ?
@Leopoldthecoder?
Set babel dependencies to ^7.0.0. (Fixes #48) Produces a couple of issues that need project maintainer feedback.
Going through the new output files, this one looks suspicious to me (unexpected
_Select
var):Another mystery guest: (
_Element
)And one more: (same as above)
I would expect something like
var _Element = bind({})(_abc["default"]);
or justconsole.log(_abc["default"]);
?