Update condition names to allow node (#198274)

update condition names to allow node
This commit is contained in:
Arvid Lunnemark 2023-11-17 02:57:50 -08:00 committed by GitHub
parent af63c41918
commit 092bc7309b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,7 @@ function withNodeDefaults(/**@type WebpackConfig & { context: string }*/extConfi
},
resolve: {
conditionNames: ['import', 'require'],
conditionNames: ['import', 'require', 'node-addons', 'node'],
mainFields: ['module', 'main'],
extensions: ['.ts', '.js'] // support ts-files and js-files
},