mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-22 17:46:56 +03:00
16 lines
391 B
JavaScript
16 lines
391 B
JavaScript
|
module.exports = (path, options) => {
|
||
|
return options.defaultResolver(path, {
|
||
|
...options,
|
||
|
packageFilter: (pkg) => {
|
||
|
if (pkg.name === 'nanoid') {
|
||
|
pkg.exports['.'].browser = pkg.exports['.'].require;
|
||
|
}
|
||
|
if (pkg.name === 'uuid' && pkg.version.startsWith('8.')) {
|
||
|
delete pkg.exports;
|
||
|
delete pkg.module;
|
||
|
}
|
||
|
return pkg;
|
||
|
},
|
||
|
});
|
||
|
};
|