push-diffusion

Regex to exclude npm library from minification

﹥>﹥吖頭↗ 提交于 2019-12-01 14:35:09
I have to use a non open source pub/sub library for websockets ( diffusion ) and have to stick to a specific version because it's what is used on the server side and I have no control about it. The issue is that in one single util in their code base they use the reserved keyword interface and that triggers a minification error that breaks the build: Failed to minify the code from this file: ./node_modules/babel-loader/lib??ref--6-oneOf-2!./node_modules/diffusion/src/node_modules/util/interface.js:127 Read more here: bit.ly/CRA-build-minify Which regex can I use to exclude this dependency from