After running my grunt build task i'm getting the following error:
>> Error: Parsing file /Users/xx/testProject/node_modules/vfc/js/file.js:
'import' and 'export' may appear only with 'sourceType: module' (12:0)
I'm using Grunt and Browserify to…
I'm just toying around with React and have a basic setup using grunt and grunt-browserify, but I'm getting a parse error. Anyone know a solution for this? Side note - the task runs fine when I don't use react/jsx.
With a basic component:
var…
a bit of a noob question -- I'd like to create two bundles -- app_bundle.js, and landing_bundle.js.
They will both share react, and a few other files, so I thought it would be a good idea to extract those out into a different, common bundle.
I…