mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08:51 +01:00
webpack - use mainFields: ['module', 'main'] for everyone
This commit is contained in:
@@ -23,7 +23,7 @@ module.exports = function withDefaults(/**@type WebpackConfig*/extConfig) {
|
||||
__dirname: false // leave the __dirname-behaviour intact
|
||||
},
|
||||
resolve: {
|
||||
mainFields: ['main'], // prefer the main-entry of package.json files
|
||||
mainFields: ['module', 'main'],
|
||||
extensions: ['.ts', '.js'] // support ts-files and js-files
|
||||
},
|
||||
module: {
|
||||
|
||||
Reference in New Issue
Block a user