Skip to content
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

Browserify cherry picking #3

Open
sebdeckers opened this issue Oct 27, 2015 · 1 comment
Open

Browserify cherry picking #3

sebdeckers opened this issue Oct 27, 2015 · 1 comment

Comments

@sebdeckers
Copy link
Contributor

What is the recommended way to import these decorators using Browserify?

I'm cherry picking the chain decorator so that the others won't need to be included in my app bundle.

This works but looks odd:

import { chain } from 'js-deco/dist/commonjs/chain'

Wondering if there is a better way?

Also, what is the difference with the underscore version? E.g. _chain

@sebdeckers
Copy link
Contributor Author

FYI the syntax shown in README does not work with Browserify.

import { chain } from 'js-deco'
Error: Cannot find module 'js-deco' from '/Users/seb/GitHub/cofounders/lgtm/src/frontend'

Been a while since I used JSPM so not immediately sure where the conflict lies. Ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant