Open nimo23 opened 6 years ago
I have also tried it with this. Does not work:
transpiler: "plugin-babel",
defaultExtension: true,
"format": "esm",
meta: {
'*.jsx': {
'babelOptions': {
"plugins": ["babel-plugin-transform-react-jsx"]
}
}
},
packages: {
"test": {
"main": "index.js",
"format": "esm",
"meta": {
"*.js": {
"babelOptions": {
"plugins": ["babel-plugin-transform-react-jsx"]
}
}
}
},
I am using System.js, JSPM, React.
I imported all plugins, however, react-files (jsx) does not transpile. I have this in jspm.config.js (jspm-version: 0.17.0-beta.47):
when runing jspm build, I get this error:
because jsx-file is not transpiled by babel. I can use "gulp-babel" and transpile it, then it works. But "jspm with plugin-babel" should do this also. What is wrong?