Skip to content

Commit 6e2f88c

Browse files
committed
faster
1 parent a090e12 commit 6e2f88c

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

lib/writeSource.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,16 @@ module.exports = function(module, options, toRealId) {
167167
});
168168
result = result.join("");
169169
}
170-
var minimized = uglify(result, module.filename);
171-
module.size = minimized.length;
172-
if(options.debug) {
173-
if(options.minimize) {
170+
if(options.minimize) {
171+
var minimized = uglify(result, module.filename);
172+
module.size = minimized.length;
173+
if(options.debug) {
174174
result = minimized;
175175
}
176+
} else {
177+
module.size = result.length;
178+
}
179+
if(options.debug) {
176180
result = [
177181
"eval(",
178182
JSON.stringify([

0 commit comments

Comments
 (0)