We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
require()
1 parent 0f45e4e commit 755360bCopy full SHA for 755360b
tasks/lib/uglify.js
@@ -12,6 +12,7 @@
12
var path = require('path');
13
var UglifyJS = require('uglify-js');
14
var uriPath = require('uri-path');
15
+var domprops = require('uglify-js/tools/domprops');
16
17
// Converts \r\n to \n
18
function normalizeLf(string) {
@@ -94,7 +95,7 @@ exports.init = function(grunt) {
94
95
minifyOptions.mangle.properties.reserved = [];
96
}
97
if (options.reserveDOMProperties) {
- require('uglify-js/tools/domprops').forEach(function(name) {
98
+ domprops.forEach(function(name) {
99
UglifyJS._push_uniq(minifyOptions.mangle.properties.reserved, name);
100
});
101
0 commit comments