From 9089dfccf9bec9bba901d3369ec731fb87b27fef Mon Sep 17 00:00:00 2001 From: cyckoo Date: Fri, 22 May 2020 11:52:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E5=BC=95=E7=94=A8?= =?UTF-8?q?=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jsconfig.json | 9 --------- package.json | 4 ++-- rollup.config.js | 24 +++++++++++++++--------- 3 files changed, 17 insertions(+), 20 deletions(-) delete mode 100644 jsconfig.json diff --git a/jsconfig.json b/jsconfig.json deleted file mode 100644 index a425ac668..000000000 --- a/jsconfig.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "compilerOptions": { - "baseUrl": ".", - "paths": { - "@util": ["./src/util/common"], - "@src": ["./src/"] - } - } -} \ No newline at end of file diff --git a/package.json b/package.json index 28db03dec..1125fb484 100644 --- a/package.json +++ b/package.json @@ -82,8 +82,8 @@ "site:build": "npm run site:clean && gatsby build --prefix-paths", "site:clean": "gatsby clean", "site:deploy": "npm run site:build && gh-pages -d public", - "build": "rollup --config", - "build-lib": "babel src --out-dir lib", + "build": "rm -rf build && rm -rf dist && rollup --config", + "build-lib": "rm -rf lib && babel src --out-dir lib", "ci": "npm run lint && npm run test", "coverage": "jest --coverage", "demos": "electron ./demos/app.js", diff --git a/rollup.config.js b/rollup.config.js index cdb8dc720..0e8c020ef 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -13,14 +13,16 @@ export default [ input: './src/index-all.js', output: [ { - name: 'F2-all', + name: 'F2', file: 'build/f2-all.js', - format: 'umd' + format: 'umd', + exports: 'named' }, { - name: 'F2-all', + name: 'F2', file: 'dist/f2-all.min.js', format: 'umd', + exports: 'named', plugins: [ terserPlugin ] } ], @@ -30,14 +32,16 @@ export default [ input: './src/index.js', output: [ { - name: 'F2-all', + name: 'F2', file: 'build/f2.js', - format: 'umd' + format: 'umd', + exports: 'named' }, { - name: 'F2-all', + name: 'F2', file: 'dist/f2.min.js', format: 'umd', + exports: 'named', plugins: [ terserPlugin ] } ], @@ -47,14 +51,16 @@ export default [ input: './src/index-simple.js', output: [ { - name: 'F2-simple', + name: 'F2', file: 'build/f2-simple.js', - format: 'umd' + format: 'umd', + exports: 'named' }, { - name: 'F2-all', + name: 'F2', file: 'dist/f2-simple.min.js', format: 'umd', + exports: 'named', plugins: [ terserPlugin ] } ],