Socket
Socket
Sign inDemoInstall

ant-app-builder

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ant-app-builder - npm Package Compare versions

Comparing version 1.5.1 to 1.5.2

17

lib/index.js

@@ -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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc