webpack-plugin-serve
webpack-plugin-serve copied to clipboard
Preserve immutability for options.historyFallback
Fixes https://github.com/shellscape/webpack-plugin-serve/issues/235
This PR contains:
- [x] bugfix
- [ ] feature
- [ ] refactor
- [ ] tests
- [ ] documentation
- [ ] metadata
Breaking Changes?
- [ ] yes
- [x] no
If yes, please describe the breakage.
Please Describe Your Changes
Resolves problems with DefinePlugin which throws warnings because some variables are changed between rebuilds. The reason is that 3rd party middleware mutates options object passed to it.
Can't realize how to test Webpack output. Are there any tests like this for a reference?
I think can test that options passed to the plugin are not mutated at all