diff --git a/package.json b/package.json index c3427a9..9c2eeac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "private": true, - "version": "1.6.0", + "version": "1.6.1", "type": "module", "scripts": { "build": "rollup -c", diff --git a/packages/create-gopeed-ext/package.json b/packages/create-gopeed-ext/package.json index b00b0db..666638e 100644 --- a/packages/create-gopeed-ext/package.json +++ b/packages/create-gopeed-ext/package.json @@ -1,6 +1,6 @@ { "name": "create-gopeed-ext", - "version": "1.6.0", + "version": "1.6.1", "keywords": [ "gopeed" ], diff --git a/packages/create-gopeed-ext/templates/webpack/package.json b/packages/create-gopeed-ext/templates/webpack/package.json index 927b07e..303d8b6 100644 --- a/packages/create-gopeed-ext/templates/webpack/package.json +++ b/packages/create-gopeed-ext/templates/webpack/package.json @@ -20,10 +20,10 @@ "eslint": "^8.51.0", "eslint-config-prettier": "^9.0.0", "eslint-plugin-prettier": "^5.0.0", - "gopeed": "^1.6.0", + "gopeed": "^1.6.1", "gopeed-polyfill-webpack-plugin": "^1.0.6", "prettier": "^3.0.3", "webpack": "^5.75.0", "webpack-cli": "^5.0.1" } -} +} \ No newline at end of file diff --git a/packages/create-gopeed-ext/templates/webpack/webpack.config.js b/packages/create-gopeed-ext/templates/webpack/webpack.config.js index 52269da..ea251bf 100644 --- a/packages/create-gopeed-ext/templates/webpack/webpack.config.js +++ b/packages/create-gopeed-ext/templates/webpack/webpack.config.js @@ -4,13 +4,13 @@ import GopeedPolyfillPlugin from 'gopeed-polyfill-webpack-plugin'; const __dirname = fileURLToPath(import.meta.url); -export default { +export default (_, argv) => ({ entry: './src/index.js', output: { filename: 'index.js', path: path.resolve(__dirname, '../dist'), }, - devtool: false, + devtool: argv.mode === 'production' ? undefined : false, plugins: [new GopeedPolyfillPlugin()], module: { rules: [ @@ -22,4 +22,4 @@ export default { }, ], }, -}; +}); diff --git a/packages/gopeed-rest/package.json b/packages/gopeed-rest/package.json index ec8c5ac..97f95b1 100644 --- a/packages/gopeed-rest/package.json +++ b/packages/gopeed-rest/package.json @@ -1,6 +1,6 @@ { "name": "@gopeed/rest", - "version": "1.6.0", + "version": "1.6.1", "description": "", "main": "dist/index.js", "exports": { diff --git a/packages/gopeed-types/package.json b/packages/gopeed-types/package.json index a252ef1..8edce65 100644 --- a/packages/gopeed-types/package.json +++ b/packages/gopeed-types/package.json @@ -1,6 +1,6 @@ { "name": "@gopeed/types", - "version": "1.6.0", + "version": "1.6.1", "description": "", "main": "dist/index.js", "exports": { diff --git a/packages/gopeed/package.json b/packages/gopeed/package.json index 5f3e55e..f4391ae 100644 --- a/packages/gopeed/package.json +++ b/packages/gopeed/package.json @@ -1,6 +1,6 @@ { "name": "gopeed", - "version": "1.6.0", + "version": "1.6.1", "description": "", "main": "index.js", "type": "module",