-
Notifications
You must be signed in to change notification settings - Fork 159
Open
Description
Expected Behavior
Support webpack 5.x
Actual Behavior
Not supportted.
Is an error being thrown?
Yes, throws an error:
TypeError: Cannot read property 'tap' of undefined
at Object.exports.tap (D:\proj\h5\node_modules\hard-source-webpack-plugin\lib\util\plugin-compat.js:118:25)
at new CacheSerializerFactory (D:\proj\h5\node_modules\hard-source-webpack-plugin\lib\CacheSerializerFactory.js:94:18)
at HardSourceWebpackPlugin.apply (D:\proj\h5\node_modules\hard-source-webpack-plugin\index.js:219:36)
at createCompiler (D:\proj\h5\node_modules\webpack\lib\webpack.js:71:12)
at create (D:\proj\h5\node_modules\webpack\lib\webpack.js:118:16)
at webpack (D:\proj\h5\node_modules\webpack\lib\webpack.js:142:32)
at f (D:\proj\h5\node_modules\webpack\lib\index.js:41:15)
Steps to Reproduce
- Use webpack 5.24.3
- Webpack plugins include:
new HardSourceWebpackPlugin()
Operating System, Node, and NPM dependency versions
Windows 10
[email protected]
[email protected]
"devDependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.4",
"babel-preset-env": "^1.6.1",
"css-loader": "^0.27.0",
"html-webpack-plugin": "^3.2.0",
"mini-css-extract-plugin": "^0.4.0",
"style-loader": "^0.14.0",
"webpack": "^5.24.3",
"webpack-cli": "^1.5.3"
},
"dependencies": {
"lodash": "^4.15.0"
}
phillipuniverse, amerllica and Silencewanghui
Metadata
Metadata
Assignees
Labels
No labels