Closed kirill-konshin closed 9 years ago
This should work if you remember to include this in your requirejs.config
:
jsx: {
transformOptions: {
harmony: true
}
}
It probably should be enabled by default to match with client-side default settings.
Second, usually module configurations are stored as config
property of object supplied to requirejs.config()
:
requirejs.config({
config: { // note this additional config property
jsx: {...}
}
});
From the plugin it should be accessed as:
// was
var options = config.jsx && config.jsx.options.transformOptions || {}; // btw this is still not safe enough
// proposed
var options = config.config && config.config.jsx && config.config.jsx.options.transformOptions || {};
http://requirejs.org/docs/api.html#config-moduleconfig Link to documentation about config
section.
You're right. Feel free to create a PR with the proposed changes :+1:
Here you go: PR https://github.com/podio/requirejs-react-jsx/pull/10
BUMP!
I've found a small issue + I've added a safer check. This could be 0.14.1 :) PR created https://github.com/podio/requirejs-react-jsx/pull/11
This seems to be dealt with now. Thanks for the contributions!
Confirmed.
Client side allows syntax:
During the build this causes an error.