mirror of
https://github.com/status-im/react-native.git
synced 2025-01-18 05:23:26 +00:00
30 lines
586 B
JavaScript
30 lines
586 B
JavaScript
|
const webpack = require('webpack');
|
||
|
|
||
|
module.exports = {
|
||
|
devtool: 'inline-source-map',
|
||
|
entry: './src/heapCapture.js',
|
||
|
resolve: {
|
||
|
extensions: ["", ".js", ".jsx"],
|
||
|
},
|
||
|
module: {
|
||
|
loaders: [
|
||
|
{
|
||
|
test: /\.jsx?$/,
|
||
|
include: /\/src\//,
|
||
|
loader: 'babel-loader',
|
||
|
query: {
|
||
|
presets: [ 'react', 'es2015' ],
|
||
|
plugins: [ 'transform-class-properties' ]
|
||
|
},
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
plugins: [
|
||
|
new webpack.BannerPlugin('\n// @generated\n', { raw: true }),
|
||
|
],
|
||
|
output: {
|
||
|
path: './',
|
||
|
filename: 'bundle.js',
|
||
|
},
|
||
|
};
|