Skip to content

Commit

Permalink
feat(webpack-runner): h5端支持main:h5 mainfield
Browse files Browse the repository at this point in the history
  • Loading branch information
Littly committed Jan 29, 2019
1 parent 65bd42d commit 7e6cc94
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 @@ -45,7 +45,7 @@ export default () => {
},
resolve: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
mainFields: ['main', 'module'],
mainFields: ['main:h5', 'main', 'module'],
symlinks: true,
modules: [
path.join(appPath, 'node_modules'),
Expand Down

0 comments on commit 7e6cc94

Please sign in to comment.