-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jsViews breaks when minified by Visual Studio Bundler & Minifier extension #323
Comments
This looks like a minifier bug to me. For an explanation of the JsViews code, see http://stackoverflow.com/a/14120023/1054484 In particular, see
So replacing |
Closing, since this is not a JsViews issue. |
@rdogmartin: |
Thank you. It's unfortunate you have to spend time on this. |
Yes, also it increases the size of JsRender. And if they don't fix it they are stuck with a minifier that is being used in production by VS users, but is unmaintained. And any other framework that uses an indirect call to eval to get the |
Updates and new documentation topics: - Important updates and improvements to $.views.settings APIs: settings.allowCode(), settings.delimiters(), settings.debugMode() plus new settings.advanced(). See new documentation at www.jsviews.com/#settings and www.jsviews.com/#jsvsettings - Support for unobserve() is now complete (and simplified): See updated documentation topic: www.jsviews.com/#unobserve - Support for namespaces associated with observable changes is now complete: See new documentation topic: www.jsviews.com/#namespaces - Support for error handling and debugging improved and extended, with some small changes to APIs - including for $.views.settings.debugMode, with full documention at www.jsviews.com/#onerror - {{>}} is now equivalent to {{>#data}} Minor breaking changes: - $.observe(arr, "length", callback) now only listens to length, not to array changes but $.observe(arr, arr, "length", callback) listens to both length and array changes - Namespaces with observeAll: $.observable(objectOrArray).observeAll(namespace, handler) is now written: $.observable(namespace, objectOrArray).observeAll(handler) - and similarly for .unobserveAll() - JsRender and JsViews no longer use the (0, eval)('this') expression to get the window object. This means that they can now be minified by the Visual Studio minifier, in spite of it not correctly minifying this expression. See BorisMoore/jsviews#323 Bug fixes: - BorisMoore/jsviews#334 (computed observable - depends) - Several additional small bug fixes - This update also includes a security fix
Updates and new documentation topics: - Important updates and improvements to $.views.settings APIs: settings.allowCode(), settings.delimiters(), settings.debugMode() plus new settings.advanced(). See new documentation at www.jsviews.com/#settings and www.jsviews.com/#jsvsettings - Support for unobserve() is now complete (and simplified): See updated documentation topic: www.jsviews.com/#unobserve - Support for namespaces associated with observable changes is now complete: See new documentation topic: www.jsviews.com/#namespaces - Support for error handling and debugging improved and extended, with some small changes to APIs - including for $.views.settings.debugMode, with full documention at www.jsviews.com/#onerror - {{>}} is now equivalent to {{>#data}} Minor breaking changes: - $.observe(arr, "length", callback) now only listens to length, not to array changes but $.observe(arr, arr, "length", callback) listens to both length and array changes - Namespaces with observeAll: $.observable(objectOrArray).observeAll(namespace, handler) is now written: $.observable(namespace, objectOrArray).observeAll(handler) - and similarly for .unobserveAll() - JsRender and JsViews no longer use the (0, eval)('this') expression to get the window object. This means that they can now be minified by the Visual Studio minifier, in spite of it not correctly minifying this expression. See #323 Bug fixes: - #334 (computed observable - depends) - Several additional small bug fixes - This update also includes a security fix
Updates and new documentation topics: - Important updates and improvements to $.views.settings APIs: settings.allowCode(), settings.delimiters(), settings.debugMode() plus new settings.advanced(). See new documentation at www.jsviews.com/#settings - Support for error handling and debugging improved and extended, with some small changes to APIs - including for $.views.settings.debugMode, with full documention at www.jsviews.com/#onerror - {{>}} is now equivalent to {{>#data}} Minor breaking changes: - JsRender no longer uses the (0, eval)('this') expression to get the window object. This means that it can now be minified by the Visual Studio minifier, in spite of it not correctly minifying this expression. See BorisMoore/jsviews#323 Bug fixes: - Several small bug fixes - This update also includes a security fix
The latest update (0.9.74) includes a change in order to workaround this minifier issue in VS.
|
I don't know if this is a bug in the minifier in the Visual Studio Bundler & Minifier extension or the way jsViews is written, so I'm posting here and in the minifier's discussion area. Please see https://visualstudiogallery.msdn.microsoft.com/9ec27da7-e24b-4d56-8064-fd7e88ac1c40/view/Discussions for my post dated today. It includes a very small repro.
Cheers!
The text was updated successfully, but these errors were encountered: