Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

Commit

Permalink
fix: restore default export (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov authored Feb 5, 2020
1 parent f097807 commit d49ec2b
Show file tree
Hide file tree
Showing 5 changed files with 966 additions and 1,908 deletions.
2 changes: 2 additions & 0 deletions __snapshots__/e2e_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ var _default = {
}
};
exports["default"] = _default;
module.exports = exports.default;
module.exports.default = exports.default;
},{}],2:[function(require,module,exports){
"use strict";
Expand Down
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,14 @@ const defaultOptions = {
babelrc: false,
plugins: [
...[
'babel-plugin-add-module-exports', // irons out differences between ES6 modules and node exports
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-object-rest-spread',
].map(require.resolve),
// irons out differences between ES6 modules and node exports
// https://github.com/59naga/babel-plugin-add-module-exports
[require.resolve('babel-plugin-add-module-exports'), {
'addDefaultProperty': true,
}],
[require.resolve('@babel/plugin-transform-runtime'), {
absoluteRuntime: path.dirname(require.resolve('@babel/runtime/package')),
}],
Expand Down
Loading

0 comments on commit d49ec2b

Please sign in to comment.