mattphillips / deep-object-diff

Deep diffs two objects, including nested structures of arrays and objects, and returns the difference. ❄️
https://www.npmjs.com/package/deep-object-diff
MIT License
1.05k stars 89 forks source link

node_modules/deep-object-diff/dist/index.js: Unknown plugin "add-module-exports" specified in package.json #33

Closed tigranbalayan closed 6 years ago

tigranbalayan commented 6 years ago

can not bundle with react-native

mattphillips commented 6 years ago

HI @tigranbalayan would you be able to supply a minimal repo with a reproduction?

All you should need to do is either:

const { diff } = require('deep-object-diff');

// OR

import { diff } from 'deep-object-diff';

add-module-exports plugin is used by deep-object-diff to build the package and should never be exposed to users of the package

ericconstantinides commented 6 years ago

I got the same error. A quick fix was to delete the "babel" portion from the deep-object-diff's package.json. I'm sure @mattphillips has a better solution but this worked in the interim.