Closed tinkertrain closed 9 years ago
I get this error when running the task, I'm using ES6 modules, are they supported?
import React from 'react'; ^^^^^^ { [SyntaxError: Unexpected reserved word] name: 'SyntaxError', message: 'Unexpected reserved word', stack: 'SyntaxError: Unexpected reserved word\n at Module._compile (module.js:439:25)\n at DestroyableTransform._transform (/Volumes/Macintosh HD/Sites/jsp
This is the render function:
var render = $.render({ template: './src/templates/index.html', data: {title: 'Page Title'}, harmony: true }) .on('error', onError);
Cheers!
Nope, not in the original JSX transform. See JSX column here:
http://kangax.github.io/compat-table/es6/
OK thanks!
I get this error when running the task, I'm using ES6 modules, are they supported?
This is the render function:
Cheers!