-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected token: keyword «const» #78
Comments
@lhtdesignde Hi, firt of all thank you for using jsvat. Hm, I'm not sure about this one, honestly... The thing is that I wanted to drop support of everything below es6. In fact I'm already generate So there will be only two options:
Honestly, I think I have to take some timeout and make an experiment to see how much things will be changed if I'll generate es3-compatible versions |
Absolutely understandable! I'm hesitant to run all vendor packages through babel though. I think it would cause too many side effects. But we might have to re-evaluate if we need to ship es5 anyway still. Thanks for taking a look! |
As a temporary solution, |
ya it helped and also I actually switched from Uglify to Terser since uglify can't do es6! Feel free to close this. :) And thanks again! |
Hi,
I just updated to 2.1.2. It all works great and I can check now against all countries. Unfortunately a problem with the production build happened. We use webpack and babel to build. We run our code through babel but not the vendor files so everything es6 related breaks browsers that can't handle es6.
Would it be possible to avoid using es6 features? This error happened when UglifyJs tried to do it's thing. Here the error:
ERROR in 22-chunk.js from UglifyJs Unexpected token: keyword «const» [./node_modules/jsvat/lib/es6/lib/countries/austria.js:1,7]
The text was updated successfully, but these errors were encountered: