Skip to content

Commit

Permalink
Add(Build): Default preferBuiltins: true for nodeResolve plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed Apr 25, 2024
1 parent 910e422 commit 3ad3a1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/techor/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ const config: Config = {
},
nodeResolve: {
extensions: ['.ts', '.tsx', '.mjs', '.cjs', '.js', '.jsx', '.json'],
exportConditions: ['node', 'import', 'require', 'default']
exportConditions: ['node', 'import', 'require', 'default'],
preferBuiltins: true
},
commonjs: { extensions: ['.js', '.ts'] },
swc: {
Expand Down

0 comments on commit 3ad3a1f

Please sign in to comment.