Skip to content

Commit 5c5a65c

Browse files
committed
feat: add @rollup/plugin-babel for Babel integration and create toTry utility function
- Added @rollup/plugin-babel to enable Babel transpilation in Rollup configuration. - Updated rollup.config.js to include Babel plugin with bundled helpers. - Created a new utility function `toTry` in src/to/toTry.ts for error handling based on Promise.try(). - Exported `toTry` function in src/index.ts for public usage.
1 parent 50c4aaf commit 5c5a65c

File tree

5 files changed

+295
-63
lines changed

5 files changed

+295
-63
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"@antfu/eslint-config": "^4.12.0",
5151
"@antfu/ni": "^24.3.0",
5252
"@rollup/plugin-alias": "^5.1.1",
53+
"@rollup/plugin-babel": "^6.0.4",
5354
"@rollup/plugin-commonjs": "^28.0.3",
5455
"@rollup/plugin-json": "^6.1.0",
5556
"@rollup/plugin-node-resolve": "^16.0.1",

0 commit comments

Comments
 (0)