Skip to content

Commit 63e2dd3

Browse files
committed
better gzip for context
1 parent 7b97101 commit 63e2dd3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/ContextModule.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@ ContextModule.prototype.source = function(dependencyTemplates, outputOptions, re
9393
"function webpackContextResolve(req) {\n",
9494
"\treturn map[req] || (function() { throw new Error(\"Cannot find module '\" + req + \"'.\") }());\n",
9595
"};\n",
96-
"webpackContext.id = "+this.id+";\n",
9796
"webpackContext.keys = function webpackContextKeys() {\n",
9897
"\treturn Object.keys(map);\n",
9998
"};\n",
10099
"webpackContext.resolve = webpackContextResolve;\n",
101100
"module.exports = webpackContext;\n",
101+
"webpackContext.id = "+this.id+";\n",
102102
];
103103
} else {
104104
var str = [

0 commit comments

Comments
 (0)