From f7304ab954aeb96a559acb5690c2a96cc689008b Mon Sep 17 00:00:00 2001 From: CRIMX Date: Tue, 15 Oct 2024 11:27:14 +0800 Subject: [PATCH] chore(setup): remove inline sourcemap --- package-lock.json | 16 ++++++++++++++++ package.json | 3 ++- tsup.config.ts | 1 + 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 4119f1a..0b1935d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "license": "MIT", "devDependencies": { "@eslint/js": "^9.12.0", + "@types/node": "^22.7.5", "@vitest/coverage-v8": "^2.1.3", "eslint": "^9.12.0", "eslint-config-prettier": "^9.1.0", @@ -1147,6 +1148,15 @@ "@types/unist": "*" } }, + "node_modules/@types/node": { + "version": "22.7.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.5.tgz", + "integrity": "sha512-jML7s2NAzMWc//QSJ1a3prpk78cOPchGvXJsC3C6R6PSMoooztvRVQEz89gmBTBY1SPMaqo5teB4uNHPdetShQ==", + "dev": true, + "dependencies": { + "undici-types": "~6.19.2" + } + }, "node_modules/@types/unist": { "version": "3.0.3", "resolved": "https://registry.npmmirror.com/@types/unist/-/unist-3.0.3.tgz", @@ -5903,6 +5913,12 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/undici-types": { + "version": "6.19.8", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", + "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", + "dev": true + }, "node_modules/unist-util-is": { "version": "6.0.0", "resolved": "https://registry.npmmirror.com/unist-util-is/-/unist-util-is-6.0.0.tgz", diff --git a/package.json b/package.json index 72b4260..8565be3 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "license": "MIT", "devDependencies": { "@eslint/js": "^9.12.0", - "typescript-eslint": "^8.9.0", + "@types/node": "^22.7.5", "@vitest/coverage-v8": "^2.1.3", "eslint": "^9.12.0", "eslint-config-prettier": "^9.1.0", @@ -51,6 +51,7 @@ "tsup": "^8.3.0", "typedoc": "^0.26.9", "typescript": "^5.5.4", + "typescript-eslint": "^8.9.0", "vitest": "^2.1.2", "yoctocolors": "^2.1.1" } diff --git a/tsup.config.ts b/tsup.config.ts index 51faecb..2013036 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -13,6 +13,7 @@ export default defineConfig({ sourcemap: true, minify: Boolean(process.env.MINIFY), esbuildOptions: options => { + options.sourcesContent = false; options.mangleProps = /[^_]_$/; options.mangleCache = mangleCache; },