sbt-reactjs icon indicating copy to clipboard operation
sbt-reactjs copied to clipboard

Does it support CommonJS style ES6 code?

Open anildigital opened this issue 9 years ago • 4 comments

Basically I am currently using requirejs, but wanted to use CommonJS style code with ES6 support?

Doest sbt-reactjs support writing it?

anildigital avatar Jun 17 '15 16:06 anildigital

is getting

Parse Error: Line 1: Illegal import declaration

for line

import React from 'react'

at the file top

anildigital avatar Jun 17 '15 17:06 anildigital

I am not sure how to expose that, I haven't worked on this stuff in a while, but would be open to patches or suggestions.

dispalt avatar Jun 17 '15 17:06 dispalt

Hi guys I am currently facing the same issue and was wondering whether you found a solution meanwhile. Bundling is crucial for our application and for now!

Amadeus82 avatar Aug 27 '15 16:08 Amadeus82

Hey guys, was a solution found?

JohnnyBrave avatar Dec 19 '18 06:12 JohnnyBrave