-
Notifications
You must be signed in to change notification settings - Fork 22
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
Script can't be run on IE11 #22
Comments
in navigation.ts, if you assign a name for the functions for mutations or actions, it should work in ie11. change commitOpenState: b.commit(setOpenState),
dispatchToggleNavigation: b.dispatch(toggleNavigation),
dispatchCloseNavigation: b.dispatch(closeNavigation), to commitOpenState: b.commit(setOpenState, 'commitOpenState'),
dispatchToggleNavigation: b.dispatch(toggleNavigation, 'dispatchToggleNavigation'),
dispatchCloseNavigation: b.dispatch(closeNavigation, 'dispatchCloseNavigation'), |
@rugia813 Thanks! That did the trick. module.exports = {
// Fix Vuex-typescript in prod: https://github.com/istrib/vuex-typescript/issues/13#issuecomment-409869231
//and Fix vuex-typex in prod https://github.com/mrcrowl/vuex-typex/issues/22
configureWebpack: (config) => {
if (process.env.NODE_ENV === 'production') {
config.optimization.minimizer[0].options.terserOptions = Object.assign(
{},
config.optimization.minimizer[0].options.terserOptions,
{
ecma: 5,
compress: {
keep_fnames: true,
},
warnings: false,
mangle: {
keep_fnames: true,
},
},
);
}
},
} |
Yes, terser is the way to go for minification. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've tried a lot to solve that problem but I simply can't get it to work, I'm not sure if it is an issue in vue-typex or I am just too stupid to figure out whats going on.
If I use vuex-typex with IE11 it blows up with the issue described here
I've prepared a repro here. Any help would be awesome.
Thanks
The text was updated successfully, but these errors were encountered: