rollup-plugin-obfuscator
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -30,4 +30,4 @@ import { Plugin } from 'rollup'; | ||
} | ||
declare const _default: (override: Partial<RollupPluginObfuscatorOptions>) => Plugin; | ||
export default _default; | ||
declare function rollupPluginObfuscator(override: Partial<RollupPluginObfuscatorOptions>): Plugin; | ||
export default rollupPluginObfuscator; | ||
//# sourceMappingURL=rollup-plugin-obfuscator.d.ts.map |
@@ -23,3 +23,3 @@ "use strict"; | ||
}; | ||
exports.default = (function (override) { | ||
function rollupPluginObfuscator(override) { | ||
var options = __assign(__assign({}, defaultOptions), override); | ||
@@ -47,3 +47,8 @@ var filter = (0, pluginutils_1.createFilter)(options.include, options.exclude); | ||
}; | ||
}); | ||
} | ||
exports.default = rollupPluginObfuscator; | ||
// unfortunately, TypeScript won't generate the following for us | ||
// see https://github.com/microsoft/TypeScript/issues/2719 | ||
// but we can assume we're always in a CommonJS environment. Right? ...Right? | ||
module.exports = rollupPluginObfuscator; | ||
//# sourceMappingURL=rollup-plugin-obfuscator.js.map |
{ | ||
"name": "rollup-plugin-obfuscator", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "The most powerful rollup plugin for javascript-obfuscator", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -43,3 +43,3 @@ import { Plugin } from 'rollup'; | ||
export default (override: Partial<RollupPluginObfuscatorOptions>): Plugin => { | ||
function rollupPluginObfuscator (override: Partial<RollupPluginObfuscatorOptions>): Plugin { | ||
const options: RollupPluginObfuscatorOptions = { | ||
@@ -81,2 +81,8 @@ ...defaultOptions, | ||
}; | ||
}; | ||
} | ||
export default rollupPluginObfuscator; | ||
// unfortunately, TypeScript won't generate the following for us | ||
// see https://github.com/microsoft/TypeScript/issues/2719 | ||
// but we can assume we're always in a CommonJS environment. Right? ...Right? | ||
module.exports = rollupPluginObfuscator; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
27677
157