From 1780f9ce06f9dfa50953b93a86bbe4c2e8e77c72 Mon Sep 17 00:00:00 2001 From: lijinke666 Date: Wed, 11 Dec 2024 10:38:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9E=84=E5=BB=BA=E4=BA=A7=E7=89=A9?= =?UTF-8?q?=E7=BC=96=E8=AF=91=E5=88=B0=20es2015=20close=20#3025?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + packages/s2-core/tsconfig.build.json | 1 + packages/s2-core/tsconfig.json | 1 - packages/s2-react-components/tsconfig.build.json | 1 + packages/s2-react/tsconfig.build.json | 1 + packages/s2-vue/tsconfig.build.json | 1 + 6 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 6768367841..0ad4d26580 100644 --- a/package.json +++ b/package.json @@ -41,6 +41,7 @@ "react:start": "pnpm --filter @antv/s2-react test:live", "react:playground": "pnpm --filter @antv/s2-react start", "react:build": "pnpm --filter @antv/s2-react build", + "react:build-esm": "pnpm --filter @antv/s2-react build:esm", "react:test": "pnpm --filter @antv/s2-react test", "react:test-coverage": "pnpm --filter @antv/s2-react test:coverage", "react:watch": " pnpm --filter @antv/s2-react watch", diff --git a/packages/s2-core/tsconfig.build.json b/packages/s2-core/tsconfig.build.json index 8f867a0a66..1b0f0c69dc 100644 --- a/packages/s2-core/tsconfig.build.json +++ b/packages/s2-core/tsconfig.build.json @@ -2,6 +2,7 @@ "extends": "./tsconfig.json", "include": ["src/**/*", "./typings.d.ts", "../../global.d.ts"], "compilerOptions": { + "target": "es2015", "paths": { "@antv/s2": ["s2-core/src/index.ts"] } diff --git a/packages/s2-core/tsconfig.json b/packages/s2-core/tsconfig.json index 264d5dd7d8..42ce828b30 100644 --- a/packages/s2-core/tsconfig.json +++ b/packages/s2-core/tsconfig.json @@ -8,7 +8,6 @@ "tests/*": ["s2-core/__tests__/*"] }, }, - "exclude": ["node_modules", "coverage", "esm", "lib", "dist", "temp"], "include": ["src", "../../global.d.ts"] } diff --git a/packages/s2-react-components/tsconfig.build.json b/packages/s2-react-components/tsconfig.build.json index 2664f3c426..b992258b15 100644 --- a/packages/s2-react-components/tsconfig.build.json +++ b/packages/s2-react-components/tsconfig.build.json @@ -2,6 +2,7 @@ "extends": "./tsconfig.json", "include": ["src/**/*", "./typings.d.ts", "../../global.d.ts"], "compilerOptions": { + "target": "es2015", "paths": { "@antv/s2": ["s2-react-components/node_modules/@antv/s2/esm/index.d.ts"], "@antv/s2/*": ["s2-react-components/node_modules/@antv/s2/esm/*"] diff --git a/packages/s2-react/tsconfig.build.json b/packages/s2-react/tsconfig.build.json index 4426e44631..cba71e1100 100644 --- a/packages/s2-react/tsconfig.build.json +++ b/packages/s2-react/tsconfig.build.json @@ -2,6 +2,7 @@ "extends": "./tsconfig.json", "include": ["src/**/*", "./typings.d.ts", "../../global.d.ts"], "compilerOptions": { + "target": "es2015", "paths": { "@antv/s2": ["s2-react/node_modules/@antv/s2/esm/index.d.ts"], "@antv/s2/*": ["s2-react/node_modules/@antv/s2/esm/*"] diff --git a/packages/s2-vue/tsconfig.build.json b/packages/s2-vue/tsconfig.build.json index 5edc7028ae..f01984a300 100644 --- a/packages/s2-vue/tsconfig.build.json +++ b/packages/s2-vue/tsconfig.build.json @@ -2,6 +2,7 @@ "extends": "./tsconfig.json", "include": ["src/**/*", "./typings.d.ts", "../../global.d.ts"], "compilerOptions": { + "target": "es2015", "paths": {} } }