in the react project, an error occurred when entering a page after being packaged with webpack into the production environment: TypeError: Super expression must either be null or a function, not undefined
but there are no errors in the development environment
Rich text editor is used in the project. It should be the problem here to make sure that the getCompositeDecorator function appears in the plug-in react-draft-wysiwyg. React version 16.4.2
the webpack configuration for production and development is basically the same, but the production only uses extractTextPlugin to separate and compress the css code.
question 1. Is there a good way to solve this mistake?
question how to skip the compression of the react-draft-wysiwyg plug-in when compressing files with 2.webpack?