mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 21:19:28 -06:00
24 lines
578 B
JavaScript
24 lines
578 B
JavaScript
const webpack = require('webpack');
|
|
const merge = require('webpack-merge');
|
|
const common = require('./webpack.common.js');
|
|
|
|
config = merge(common, {
|
|
devtool: 'cheap-module-source-map',
|
|
externals: {
|
|
'react/addons': true,
|
|
'react/lib/ExecutionEnvironment': true,
|
|
'react/lib/ReactContext': true,
|
|
},
|
|
node: {
|
|
fs: 'empty'
|
|
},
|
|
plugins: [
|
|
new webpack.SourceMapDevToolPlugin({
|
|
filename: null, // if no value is provided the sourcemap is inlined
|
|
test: /\.(ts|js)($|\?)/i // process .js and .ts files only
|
|
})
|
|
]
|
|
});
|
|
|
|
module.exports = config;
|