Skip to content

Commit

Permalink
feat(webpack-runner): mainFields补上了browser字段, close #3415
Browse files Browse the repository at this point in the history
  • Loading branch information
Littly committed Jun 27, 2019
1 parent 775c953 commit 3ef3d5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro-webpack-runner/src/config/base.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default (appPath: string) => {
chain.merge({
resolve: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
mainFields: ['main:h5', 'module', 'main'],
mainFields: ['main:h5', 'browser', 'module', 'main'],
symlinks: true,
modules: [
path.join(appPath, 'node_modules'),
Expand Down

0 comments on commit 3ef3d5b

Please sign in to comment.