Skip to content

Commit 1f49756

Browse files
authored
fix: use correct aliasFileds to exclude Node polyfills from bundle (#672)
1 parent 5f186a6 commit 1f49756

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/haul-preset-0.59/src/defaultConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export default function getDefaultConfig(
152152
* First entry takes precedence.
153153
*/
154154
mainFields: ['react-native', 'browser', 'main'],
155-
aliasFields: ['react-native'],
155+
aliasFields: ['react-native', 'browser', 'main'],
156156
extensions: [
157157
`.${platform}.js`,
158158
`.${platform}.jsx`,

packages/haul-preset-0.60/src/defaultConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export default function getDefaultConfig(
142142
* First entry takes precedence.
143143
*/
144144
mainFields: ['react-native', 'browser', 'main'],
145-
aliasFields: ['react-native'],
145+
aliasFields: ['react-native', 'browser', 'main'],
146146
extensions: [
147147
`.${platform}.js`,
148148
`.${platform}.jsx`,

0 commit comments

Comments
 (0)