-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api): implement dispatch function, more exports
BREAKING CHANGE: the default export is now named makeCapTP Other named exports are E, harden, HandledPromise, Nat.
- Loading branch information
1 parent
0ce49a9
commit cad73a2
Showing
5 changed files
with
200 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import resolve from 'rollup-plugin-node-resolve'; | ||
import commonjs from 'rollup-plugin-commonjs'; | ||
|
||
export default [ | ||
{ | ||
input: 'lib/captp.js', | ||
output: [ | ||
{ | ||
file: 'dist/captp.umd.js', | ||
format: 'umd', | ||
name: 'CapTP', | ||
}, | ||
{ | ||
file: 'dist/captp.esm.js', | ||
format: 'esm', | ||
}, | ||
{ | ||
file: 'dist/captp.cjs.js', | ||
format: 'cjs', | ||
}, | ||
], | ||
plugins: [ | ||
resolve(), | ||
commonjs({include: 'node_modules/**'}), | ||
], | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters