You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
UglifyJs breaks when using symlinked directory #3650
As simpler solution to git submodules, I am sharing code with this app using a symlinked folder. The app runs perfectly in dev mode. But when I try to build it UglifyJs breaks with the following error (obscured):
Failed to compile.
static/js/main.95ce5432.js from UglifyJs
Unexpected token name «extends», expected punc «)» [../other-project/src/folder/file.js:3,0][static/js/main.95ce5432.js:551,63]
The app is built and works but main.x.js is not obfuscated/compressed.
The generated main.x.js still uses in fact the syntax class extends which I assume would only work in certain browsers and needs to be converted?
Even if I try to uglify manually main.x.js via terminal I get the same error.
Any idea how I could debug/fix this? Thanks a lot!
my understanding is that in create-react-app is not possible to use symlinks to reference ES6 classes outside the src folder and that this use case won't be supported in the foreseeable future.
my understanding is that in create-react-app is not possible to use symlinks to reference ES6 classes outside the src folder and that this use case won't be supported in the foreseeable future.
Activity
nuthinking commentedon Dec 27, 2017
Looks like I wasn't the only one facing this issue: #2553 and https://stackoverflow.com/questions/42942000/using-create-react-app-and-having-es6-dependencies
nuthinking commentedon Dec 27, 2017
my understanding is that in
create-react-appis not possible to use symlinks to reference ES6 classes outside thesrcfolder and that this use case won't be supported in the foreseeable future.Timer commentedon Dec 27, 2017
This is correct, sorry!
I'll close this as a duplicate of #2553.