Permalink
Browse files

fix(npm): Serenity/JS compiles to ES5 instead of ES6 to fix issues wi…

…th the module loader

To use Serenity/JS on a node.js project, the library has to be compiled to ES5. This is required,

because: 1) Node.js doesn't support the ES6 module loading mechanism 2) Even when the TS compiler is

configured to generate ES5-compatible module declarations, it still seems to be using ES6.
  • Loading branch information...
jan-molak committed Jan 26, 2017
1 parent 4475c2c commit 5a4c1d4df24f38456a2da00d1ddc203ed57522d0
Showing with 9 additions and 1 deletion.
  1. +7 −0 spec/tsconfig.json
  2. +2 −1 tsconfig.json
View
@@ -0,0 +1,7 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"target": "es6"
}
}
View
@@ -1,6 +1,7 @@
{
"compilerOptions": {
"target": "es6",
"target": "es5",
"lib": [ "es5", "es6" ],
"module": "commonjs",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,

0 comments on commit 5a4c1d4

Please sign in to comment.