I need to have babel run on /node_modules/identicons/ However I still want to exclude all other packages.
/node_modules/identicons/
Reason is the identicons package
Another way:
exclude: [ { test: [ path.resolve(__dirname, './node_modules'), ], exclude: [ path.resolve(__dirname, './node_modules/MODULE_TO_INCLUDE'), path.resolve(__dirname, './node_modules/ANOTHER_MODULE_TO_INCLUDE'), ] } ]
It worked for me.