Skip to content

Commit 89c5f3b

Browse files
authored
Merge pull request #1381 from storybooks/fix-rn-webpack-prod-config
Removed empty array, since webpack 2 doesn't support them anymore.
2 parents 6df3dea + 98f95d7 commit 89c5f3b

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

app/react-native/src/server/config/webpack.config.prod.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,12 @@ import path from 'path';
22
import webpack from 'webpack';
33
import { OccurenceOrderPlugin, includePaths, excludePaths } from './utils';
44

5-
const entries = {
6-
preview: [],
7-
manager: [path.resolve(__dirname, '../../manager')],
8-
};
9-
105
const config = {
116
bail: true,
127
devtool: '#cheap-module-source-map',
13-
entry: entries,
8+
entry: {
9+
manager: [path.resolve(__dirname, '../../manager')],
10+
},
1411
output: {
1512
path: path.join(__dirname, 'dist'),
1613
filename: 'static/[name].bundle.js',

0 commit comments

Comments
 (0)