Closed victor-homyakov closed 10 years ago
@victor-homyakov what's the name of components/helloworld
(it should use the .jsx
extension)? r.js
evals all .js
files which will of course fail in the presence of <Tags>
.
Extension is .js
. Everything works fine in dev mode, only r.js
build fails (more exactly, fails the code _dereq_('source-map')
).
Extension is
.js
.
Should be .jsx
.
Everything works fine in dev mode, only r.js build fails
As expected. As I said, r.js
evals every .js
file it finds, for us to be able to preprocess a JS file in r.js
we have to use a different extension to tell r.js
that its content is not JS.
Exception at https://github.com/philix/jsx-requirejs-plugin/blob/master/js/JSXTransformer-0.10.0.js#L10386
In order to build I surrounded
_dereq_('source-map')
withtry .. catch
: