Skip to content

Commit

Permalink
fix: use correct aliasFileds to exclude Node polyfills from bundle (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
zamotany authored Oct 31, 2019
1 parent 5f186a6 commit 1f49756
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/haul-preset-0.59/src/defaultConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export default function getDefaultConfig(
* First entry takes precedence.
*/
mainFields: ['react-native', 'browser', 'main'],
aliasFields: ['react-native'],
aliasFields: ['react-native', 'browser', 'main'],
extensions: [
`.${platform}.js`,
`.${platform}.jsx`,
Expand Down
2 changes: 1 addition & 1 deletion packages/haul-preset-0.60/src/defaultConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export default function getDefaultConfig(
* First entry takes precedence.
*/
mainFields: ['react-native', 'browser', 'main'],
aliasFields: ['react-native'],
aliasFields: ['react-native', 'browser', 'main'],
extensions: [
`.${platform}.js`,
`.${platform}.jsx`,
Expand Down

0 comments on commit 1f49756

Please sign in to comment.