diff --git a/index.js b/index.js index 8b5a980..9970799 100644 --- a/index.js +++ b/index.js @@ -71,6 +71,7 @@ module.exports = class GopeedPolyfillPlugin { assert: require.resolve('assert/'), buffer: require.resolve('buffer/'), constants: require.resolve('constants-browserify'), + console: require.resolve('console-browserify'), crypto: require.resolve('crypto-browserify'), /* eslint-disable-next-line camelcase */ child_process: false, diff --git a/package.json b/package.json index 03f844b..ba9eafa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gopeed-polyfill-webpack-plugin", - "version": "1.0.4", + "version": "1.0.5", "description": "Polyfill Node.js core modules in Webpack.", "repository": "GopeedLab/gopeed-polyfill-webpack-plugin", "author": {