File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 11import buble from 'rollup-plugin-buble' ;
22import flow from 'rollup-plugin-flow' ;
3+ import fs from 'fs' ;
34
4- const pkg = require ( './package' ) ;
5+ const pkg = JSON . parse ( fs . readFileSync ( './package.json' ) ) ;
56
67export default {
78 entry : 'src/index.js' ,
@@ -12,8 +13,8 @@ export default {
1213 buble ( )
1314 ] ,
1415 targets : [
15- { dest : pkg . main , format : 'cjs' } ,
16- { dest : pkg . module , format : 'es' } ,
17- { dest : pkg [ 'umd:main' ] , format : 'umd' , moduleName : pkg . name }
16+ { dest : pkg . main , format : 'cjs' } ,
17+ { dest : pkg . module , format : 'es' } ,
18+ { dest : pkg [ 'umd:main' ] , format : 'umd' , moduleName : pkg . name }
1819 ]
1920} ;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export default function mitt(all: EventHandlerMap) {
2020 /**
2121 * Register an event handler for the given type.
2222 *
23- * @param {String } type Type of event to listen for, or `"*"` for all events
23+ * @param {String } type Type of event to listen for, or `"*"` for all events
2424 * @param {Function } handler Function to call in response to given event
2525 * @memberOf mitt
2626 */
@@ -31,7 +31,7 @@ export default function mitt(all: EventHandlerMap) {
3131 /**
3232 * Remove an event handler for the given type.
3333 *
34- * @param {String } type Type of event to unregister `handler` from, or `"*"`
34+ * @param {String } type Type of event to unregister `handler` from, or `"*"`
3535 * @param {Function } handler Handler function to remove
3636 * @memberOf mitt
3737 */
You can’t perform that action at this time.
0 commit comments