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": {} } }