Merge pull request #16225 from strapi/fix/webpack-main-fields

This commit is contained in:
Josh 2023-03-28 16:45:45 +01:00 committed by GitHub
commit 8597019f87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -221,7 +221,7 @@ module.exports = ({
alias,
symlinks: false,
extensions: ['.js', '.jsx', '.react.js', '.ts', '.tsx'],
mainFields: ['browser', 'jsnext:main', 'main'],
mainFields: ['browser', 'module', 'jsnext:main', 'main'],
modules: ['node_modules', path.resolve(__dirname, 'node_modules')],
},
plugins: [