initial commit
This commit is contained in:
8
node_modules/rollup-plugin-terser/transform.js
generated
vendored
Normal file
8
node_modules/rollup-plugin-terser/transform.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
const { minify } = require("terser");
|
||||
|
||||
const transform = (code, optionsString) => {
|
||||
const options = eval(`(${optionsString})`);
|
||||
return minify(code, options).then(result => ({ result, nameCache: options.nameCache }));
|
||||
};
|
||||
|
||||
exports.transform = transform;
|
||||
Reference in New Issue
Block a user