Skip to content

Instantly share code, notes, and snippets.

@patrickarlt
Created October 18, 2016 23:10
Show Gist options
  • Save patrickarlt/46bdf8bc22cb8b459402542a607d4641 to your computer and use it in GitHub Desktop.
Save patrickarlt/46bdf8bc22cb8b459402542a607d4641 to your computer and use it in GitHub Desktop.
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": true,
"suppressImplicitAnyIndexErrors": true,
"typeRoots": [ "node_modules/@types/" ],
"types": [ "node", "jasmine", "core-js" ]
}
}
var path = require('path');
module.exports = {
entry: {
root: './src/assets/js-es6/ng/apps/main.ts'
},
devtool: 'source-map',
resolve: {
extensions: ['.ts', '.js', ''],
root: [
path.resolve('./src')
]
},
module: {
loaders: [
{
test: /\.js$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel'
},
{
test: /\.ts$/,
exclude: /(node_modules|bower_components)/,
loaders: [
'ts',
'angular2-router-loader?debug=true'
]
},
{
test: /\.html$/,
exclude: /(node_modules|bower_components)/,
loader: 'html'
},
{
test: /\.json$/,
exclude: /(node_modules|bower_components)/,
loader: 'json'
}
]
},
output: {
path: path.join(__dirname, 'build', 'assets', 'js'),
sourceMapFilename: '[name].js.map',
filename: '[name].js',
chunkFilename: '[id].chunk.js',
publicPath: 'http://localhost:8080'
}
};
@kasir-barati
Copy link

Resolved. I commented the types option in tsconfig.json and also remove the declare global { ... from the src/packages/logger/module.d.ts file. And everything just work as it should. :)
For more info read my repository: https://github.com/kasir-barati/you-say

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment