Skip to content

Commit 829027b

Browse files
committed
Set default tsconfig to use es6->es5
1 parent 4457e1e commit 829027b

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

addon/ng2/blueprints/ng2/files/__path__/tsconfig.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44
"declaration": false,
55
"emitDecoratorMetadata": true,
66
"experimentalDecorators": true,
7-
"mapRoot": "/",
8-
"module": "commonjs",
7+
"module": "es6",
8+
"target": "es5",
9+
"lib": ["es6", "dom"],
910
"moduleResolution": "node",
1011
"outDir": "./dist/",
1112
"rootDir": ".",
13+
"mapRoot": "/",
1214
"sourceMap": true,
13-
"sourceRoot": ".",
14-
"target": "es2015"
15+
"sourceRoot": "."
1516
},
1617
"exclude": [
1718
"node_modules",

addon/ng2/models/webpack-build-common.ts

+2-6
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,8 @@ export const getWebpackCommonConfig = function(projectRoot: string) {
4242
loader: 'awesome-typescript-loader',
4343
query: {
4444
useWebpackText: true,
45-
tsconfig: path.resolve(projectRoot, './src/tsconfig.json'),
46-
// resolveGlobs: false,
47-
module: "es2015",
48-
target: "es5",
49-
lib: ['es6', 'dom'],
50-
useForkChecker: true
45+
useForkChecker: true,
46+
tsconfig: path.resolve(projectRoot, './src/tsconfig.json')
5147
}
5248
},
5349
{

0 commit comments

Comments
 (0)