-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How should I import this module from es6? #57
Comments
@alesch: Does it work if you do: |
Using import I from 'seamless-immutable'
let l = new I([1,2,3]);
console.log(l); // [ 1, 2, 3 ] When using Ramda I do: |
I'm using babel and browserify and the following works for me: import I from "seamless-immutable";
const l = I([1, 2, 3]);
console.log(l); // [1, 2, 3, __immutable_invariants_hold: true] |
You are right, it works for me too with node. It was my IDE's linter complaining ?!? In the beginning I tried using nesh, and there Sorry about that and thanks for your help! |
@alesch: nice! my IDE complains also if I do: |
Super! |
Hi, how replace a require('seamless-immutable').static with and ES6 import ? |
Thanks for this module!
Importing like this in es5:
var I = require('seamless-immutable')
gives me:but I do not find a way to get the same thing in es6.
Doing
import * as I from 'seamless-immutable'
gives:I can see that what I need is the
default
inside but I do not manage to get itThank you!.
The text was updated successfully, but these errors were encountered: