jspm / jspm-cli

ES Module Package Manager
https://jspm.org
Apache License 2.0
3.79k stars 272 forks source link

npm react-forms does not install correctly #1270

Closed Removed-5an closed 9 years ago

Removed-5an commented 9 years ago

I'm writing an application in react and everything is working fine except installing react-forms. It seems like jspm/systemjs/babel is not transpiling the jsx in that package... I have no clue why.

example:

jspm install npm:react-forms

then in your js:

import reactForms from 'react-forms'
johnsoftek commented 9 years ago

@5an1ty System.js assumes cjs format for npm packages. react-forms/lib/index.js has no import or export statements, so the transpiler is not invoked.

https://github.com/jspm/jspm-cli/blob/master/docs/getting-started.md Note modules are only detected as ES6 when module syntax is present.

Removed-5an commented 9 years ago

Thanks a lot, that explains it.

guybedford commented 9 years ago

If you need help with the override here further just let me know.