javascript - Babel.js was not loaded on Systemjs's transpiler -
in using babel transpiler of systemjs, encountered error @ chrome console.
potentially unhandled rejection [2] error loading "test" @ test.js error evaluating test.js uncaught syntaxerror: unexpected token < (warning: non-error used)
i have doubt jsx
transpiling failed because babel not loaded. there not calling browser.min.js
(babel-browser) stack in chrome's network-tab.
you can see code on here.
i found solution.
i changed it:
var react = require('react');
to
import react 'react';
es6 code of target js file call babel.
Comments
Post a Comment