Wondering why you aren't using JavaScript 'strict mode';
Any plans to use strict mode? Will it break things? I see ReactJS source uses strict mode, so wondering why Redux isn't?
Thanks!
Strict mode is implicit inside ES6 modules.
OK, so what happens on the browser side with browsers that don't support ES6? I guess it's not an issue unless you're writing apps for Win 7 users in corporate environment that won't upgrade to latest browser for whatever IT reason: https://kangax.github.io/compat-table/es6/
@giantelk babel injects 'use strict' statements when redux is transpiled for production. Check your node_modules/redux/dist/redux.js if you're using npm, you'll see them all over the place.
Yes, it's part of the compilation process before the package gets published on npm.
Most helpful comment
@giantelk babel injects
'use strict'statements when redux is transpiled for production. Check yournode_modules/redux/dist/redux.jsif you're usingnpm, you'll see them all over the place.