mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Don't try to uglify on the client
Follow-up to36ff10c08. Note that696ce39c10made tests fail, because it used minifiers on the client for the first time, which hit this edge case. If you are hitting this issue in your own app because you are using SpacebarsCompiler on the client and loading minifiers, you can work around it for now by putting this somewhere: Package.minifiers.UglifyJSMinify = function (code) { return { code: code }; };
This commit is contained in:
@@ -90,7 +90,7 @@ SpacebarsCompiler.codeGen = function (parseTree, options) {
|
||||
};
|
||||
|
||||
SpacebarsCompiler._beautify = function (code) {
|
||||
if (Package.minifiers) {
|
||||
if (Package.minifiers && Package.minifiers.UglifyJSMinify) {
|
||||
var result = Package.minifiers.UglifyJSMinify(
|
||||
code,
|
||||
{ fromString: true,
|
||||
|
||||
Reference in New Issue
Block a user