npm run production: Unexpected token: name (Vuemit)
Closed this issue · 6 comments
liamomagma commented
Running npm run production
in current Laravel 5.5 gives the following errror.
@ ./resources/assets/js/app.js 59:35-72
@ multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss
error
/js/app.js from UglifyJs
Unexpected token: name (Vuemit) [./~/vuemit/src/Vuemit.js:11,0][/js/app.js:54904,6]
In my app.js I have window.Vuemit = require('vuemit');
but fails with the above error.
ctf0 commented
related to babel preset, check #6 https://ctf0.wordpress.com/2017/09/12/laravel-mix-es6/
gocanto commented
Will check it later. Thanks :)
ctf0 commented
@gocanto we should update the readme about installing the presets and enabling them in the webpack config.