2017-10-01 13:02:25 -05:00
|
|
|
const webpack = require('webpack');
|
|
|
|
const merge = require('webpack-merge');
|
|
|
|
const common = require('./webpack.common.js');
|
|
|
|
|
|
|
|
config = merge(common, {
|
2017-10-12 12:01:02 -05:00
|
|
|
devtool: 'cheap-module-source-map',
|
2017-10-01 13:02:25 -05:00
|
|
|
externals: {
|
|
|
|
'react/addons': true,
|
|
|
|
'react/lib/ExecutionEnvironment': true,
|
|
|
|
'react/lib/ReactContext': true,
|
|
|
|
},
|
2018-04-18 08:01:36 -05:00
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.tsx?$/,
|
|
|
|
exclude: /node_modules/,
|
|
|
|
use: [
|
|
|
|
{ loader: "awesome-typescript-loader" }
|
|
|
|
]
|
|
|
|
},
|
|
|
|
]
|
2017-10-01 13:02:25 -05:00
|
|
|
},
|
|
|
|
plugins: [
|
2017-11-27 05:14:57 -06:00
|
|
|
new webpack.SourceMapDevToolPlugin({
|
|
|
|
filename: null, // if no value is provided the sourcemap is inlined
|
|
|
|
test: /\.(ts|js)($|\?)/i // process .js and .ts files only
|
2018-03-09 04:27:00 -06:00
|
|
|
}),
|
2017-10-01 13:02:25 -05:00
|
|
|
]
|
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = config;
|