Gulp plugin for build JavaScript files as Universal Module Definition, aka UMD
126
stars
14
forks
source link
Adding window, document to IIFE but not not require it for commonJS, use root & root.document instead #25
Open
alvarotrigo opened 6 years ago
I would like to include
window
anddocument
for minification purposes. As having them in the IIFE will reduce a bit the size of the minified file.I would like to get something like this:
But adding as a dependencies
window
anddocument
and up creating for commonJS the following:Which i believe is not correct and should be instead: