flitbit / diff

Javascript utility for calculating deep difference, capturing changes, and applying changes across objects; for nodejs and the browser.
MIT License
2.99k stars 213 forks source link

Import deepDiff from 'deep-diff' using Rollup is wrong. #128

Closed moersing closed 6 years ago

moersing commented 6 years ago

Hi, On the 1.0.0 version , I using import deepDiff from 'deep-diff' with Rollup, But I get an error : Error: 'observableDiff' is not exported by node_modules/deep-diff/index.js. I think this is a bug relative#93 , Because I found index.es.js file on the 0.3.8 version but the 1.0.0 not, Why did you deleted it ?

flitbit commented 6 years ago

I deleted index.es.js because it was redundant and complicated dev on this module. Since I only visit it once in a while I wanted it simplified. Can I get a link to Rollup?

flitbit commented 6 years ago

nm, found it.

flitbit commented 6 years ago

Seems ok. Problem with what Rollup is doing?

Transcript:

im5k:flitbit phillip$ node --version
v8.11.1
im5k:flitbit phillip$ node
> const diff = require('deep-diff')
undefined
> diff.observableDiff
[Function: observableDiff]
> .exit