From 295f3f7be486a7a94aef50217f228d64a1c62380 Mon Sep 17 00:00:00 2001 From: liwei Date: Mon, 5 Aug 2024 11:51:15 +0800 Subject: [PATCH] feat: polyfill console --- index.js | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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": {