From 7b08d5e309553b3299e170d514ef19bca38138ff Mon Sep 17 00:00:00 2001 From: zombiej Date: Fri, 29 May 2020 16:37:51 +0800 Subject: [PATCH] chore: Update pkg to use babel runtime deps --- .fatherrc.js | 9 +++++---- package.json | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.fatherrc.js b/.fatherrc.js index 81cd0147..912aa0aa 100644 --- a/.fatherrc.js +++ b/.fatherrc.js @@ -1,8 +1,9 @@ export default { - cjs: "babel", - esm: { type: "babel", importLibToEs: true }, + cjs: 'babel', + esm: { type: 'babel', importLibToEs: true }, preCommit: { eslint: true, - prettier: true - } + prettier: true, + }, + runtimeHelpers: true, }; diff --git a/package.json b/package.json index 94b8d0fe..54c4fd68 100644 --- a/package.json +++ b/package.json @@ -73,6 +73,7 @@ "typescript": "^3.9.2" }, "dependencies": { + "@babel/runtime": "^7.10.1", "classnames": "2.x", "raf": "^3.4.1", "rc-dropdown": "^3.1.0",