mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-29 04:53:54 +03:00
12 lines
263 B
JavaScript
12 lines
263 B
JavaScript
|
module.exports = (path, options) => {
|
||
|
return options.defaultResolver(path, {
|
||
|
...options,
|
||
|
packageFilter: (pkg) => {
|
||
|
if (pkg.name === 'nanoid') {
|
||
|
pkg.exports['.'].browser = pkg.exports['.'].require;
|
||
|
}
|
||
|
return pkg;
|
||
|
},
|
||
|
});
|
||
|
};
|