implements proper node_modules exclusion path in prod webpack config

This commit is contained in:
James
2020-07-13 16:15:43 -04:00
parent f67d914162
commit 27d333fae1

View File

@@ -29,7 +29,7 @@ module.exports = (config) => {
},
{
test: /\.js$/,
exclude: /node_modules/,
exclude: /node_modules\/(?!(@payloadcms\/payload)\/).*/,
use: {
loader: 'babel-loader',
options: {