flitbit / diff

Javascript utility for calculating deep difference, capturing changes, and applying changes across objects; for nodejs and the browser.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

moersing opened this issue · comments

commented

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 ?

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?

nm, found it.

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