Fix UMD exposing

This commit is contained in:
Micah Allen 2018-11-02 01:29:47 -04:00
parent d40908d8d0
commit e195e519de
2 changed files with 3 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -7,6 +7,7 @@ module.exports = {
path: path.resolve(__dirname, 'dist'), path: path.resolve(__dirname, 'dist'),
filename: 'rage-rpc.min.js', filename: 'rage-rpc.min.js',
library: 'rpc', library: 'rpc',
libraryTarget: 'umd' libraryTarget: 'umd',
globalObject: "typeof self !== 'undefined' ? self : this"
} }
}; };