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

Commit

Permalink
configure the babel to export modules without .default (issue #2)
Browse files Browse the repository at this point in the history
Now methods of the lib can be called like:

    Sirko.predict(...)

instead of

    Sirko.default.pedict(...)
  • Loading branch information
dnesteryuk committed Nov 22, 2016
1 parent b65c69a commit b3d81a9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/sirko.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"devDependencies": {
"babel-core": "^6.11.4",
"babel-loader": "^6.2.4",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-plugin-transform-runtime": "^6.12.0",
"babel-preset-es2015": "^6.9.0",
"karma": "^1.3.0",
Expand Down
5 changes: 4 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ module.exports = {

query: {
presets: ['es2015'],
plugins: ['transform-runtime'],
plugins: [
'transform-runtime',
'add-module-exports'
],
cacheDirectory: true
}
},
Expand Down

0 comments on commit b3d81a9

Please sign in to comment.