From 6deb04379ecf2a0a32603b0e7b17b0e18730e33a Mon Sep 17 00:00:00 2001 From: MiracleUFO Date: Fri, 6 Oct 2023 01:13:21 +0100 Subject: [PATCH] fix(build-error-buffer): buffer missing, es6 vs esnext issue? --- rollup.config.mjs | 2 +- tsconfig.json | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/rollup.config.mjs b/rollup.config.mjs index 135ef4b..63e95dd 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -31,7 +31,7 @@ const mainConfig = { { file: 'dist/index.min.js', format: 'umd', - name: 'DatePicker', + name: 'react-g-translator', plugins: [terser()], sourcemap: true, globals: { diff --git a/tsconfig.json b/tsconfig.json index d52314b..1851bdb 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,8 +4,17 @@ "strict": true, "esModuleInterop": true, "target": "es5", - "module": "esnext", + "module": "es6", "moduleResolution": "node", + "declaration": true, + "sourceMap": true, + "rootDir": "./", + "baseUrl": "./src", + "outDir": "./dist", + "importHelpers": true, + "forceConsistentCasingInFileNames": true, + "skipLibCheck": true, + "resolveJsonModule": true }, "include": [ "*.eslintrc.js",