ant-app-builder
Advanced tools
Comparing version 1.5.1 to 1.5.2
@@ -109,9 +109,6 @@ | ||
} | ||
console.time("Rollup") | ||
// rollup.js | ||
let bundle = await rollup.rollup({ input: filePath, treeshake: false }) | ||
let { output } = await bundle.generate({ format: "esm" }) | ||
console.timeEnd("Rollup") | ||
console.time("Requires") | ||
// custom require-parser | ||
@@ -133,11 +130,11 @@ let code = output[0].code | ||
// code = code.replace(/\n\n/gm, "") | ||
console.timeEnd("Requires") | ||
console.time("Terser") | ||
// terser.js | ||
const options = { compress: false, module: false, mangle: uglify } | ||
const parsed = terser.minify(code, options) | ||
console.timeEnd("Terser") | ||
if (uglify) { | ||
// terser.js | ||
const options = { compress: false, module: false, mangle: uglify } | ||
const parsed = terser.minify(code, options) | ||
return parsed.code | ||
} | ||
return uglify ? parsed.code : code | ||
return code | ||
} | ||
@@ -144,0 +141,0 @@ |
{ | ||
"name": "ant-app-builder", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./lib", |
@@ -10,6 +10,6 @@ | ||
let runIt = async() => { | ||
let src = path.join(srcDir, "/src/js/bundle.js") | ||
await Bundle(src) | ||
// let src = path.join(srcDir, "/src/js/bundle.js") | ||
// await Bundle(src) | ||
//let b = await Build(srcDir, destDir, uglify) | ||
let b = await Build(srcDir, destDir, uglify) | ||
//console.log(b) | ||
@@ -16,0 +16,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
53305
458