Skip to content

Commit

Permalink
WIP: ES6 and testing framework (#13)
Browse files Browse the repository at this point in the history
* Base functional mocha+babel configuration

* Change require to dynamic import

This change was made to be more aligned with ES6.
Note that we use the unoffical `babel-plugin-dynamic-import-node` plugin to transpile
the dynamic import to a require for mocha-purposes. This is something that would normally
be done by a tool like webpack.
  • Loading branch information
pimotte authored and bkaptijn committed Dec 19, 2018
1 parent fb2520c commit f6dde8c
Show file tree
Hide file tree
Showing 6 changed files with 1,207 additions and 1,101 deletions.
16 changes: 16 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "current",
"chrome": "69"
}
}
]
],
"plugins": [
"babel-plugin-dynamic-import-node"
]
}
Loading

0 comments on commit f6dde8c

Please sign in to comment.