var webpack = require('webpack')
var generate = function(isProd) {
    return {
        entry: {
            'sir-trevor-adapter': './src/index.js',
        },
        output: {
            library: 'SirTrevorAdapter',
            libraryTarget: 'this',
            filename: '[name].' + (isProd ? 'min.' : '') + 'js'
        },
        plugins: isProd ? [ new webpack.optimize.UglifyJsPlugin() ] : [],
        externals: {
            "jquery": "jQuery"
        }
    }
}

module.exports = generate(false)
module.exports.generate = generate
@@ -244,12 +244,11 @@
 t: '
-this
+umd
 ',%0A 

Change library export mechanism