@daybrush/builder
Advanced tools
Comparing version 0.2.0 to 0.2.1
14
index.js
@@ -22,2 +22,3 @@ const fs = require("fs"); | ||
*/`; | ||
const prototypeMinify = require("rollup-plugin-prototype-minify")(); | ||
const commonjsPlugin = require("@rollup/plugin-commonjs")(); | ||
@@ -62,4 +63,5 @@ const typescriptPlugin = require("@rollup/plugin-typescript"); | ||
banner = defaultBanner, | ||
minifyPrototype, // minify prototype | ||
} = options; | ||
const nextPlugins = plugins.concat([ | ||
const nextPlugins = [ | ||
typescriptPlugin({ | ||
@@ -69,7 +71,13 @@ tsconfig, | ||
}), | ||
replacePlugin | ||
]); | ||
replacePlugin, | ||
] | ||
nextPlugins.push(...replacePlugin); | ||
minifyPrototype && nextPlugins.push(prototypeMinify({ | ||
sourcemap, | ||
exclude: /node_modules/g, | ||
})); | ||
commonjs && nextPlugins.push(commonjsPlugin); | ||
resolve && nextPlugins.push(resolvePlugin); | ||
if (uglify) { | ||
@@ -76,0 +84,0 @@ const condition = typeof uglify === "string" ? uglify : `name:(\\s*)${pkg.name.replace(/\//g, "\\/")}`; |
{ | ||
"name": "@daybrush/builder", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "", | ||
@@ -26,4 +26,5 @@ "main": "index.js", | ||
"rollup": "^3.7.1", | ||
"rollup-plugin-prototype-minify": "^1.1.0", | ||
"rollup-plugin-visualizer": "^5.8.3" | ||
} | ||
} |
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
38136
5
218
8
+ Added@babel/code-frame@7.26.2(transitive)
+ Added@babel/generator@7.26.2(transitive)
+ Added@babel/helper-string-parser@7.25.9(transitive)
+ Added@babel/helper-validator-identifier@7.25.9(transitive)
+ Added@babel/parser@7.26.2(transitive)
+ Added@babel/template@7.25.9(transitive)
+ Added@babel/traverse@7.25.9(transitive)
+ Added@babel/types@7.26.0(transitive)
+ Addeddebug@4.3.7(transitive)
+ Addedglobals@11.12.0(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedjsesc@3.0.2(transitive)
+ Addedms@2.1.3(transitive)
+ Addedpicocolors@1.1.1(transitive)
+ Addedprototype-minify@1.1.0(transitive)
+ Addedrollup-plugin-prototype-minify@1.1.0(transitive)