minify icon indicating copy to clipboard operation
minify copied to clipboard

Debug mode, incorrect parsing

Open dautushenka opened this issue 9 years ago • 1 comments

JS parsing error on combined js files with debug mode

/* angular_1_router.js */

/* 1    */ (function(){
/* 2    */ ///<reference path="../typings/angularjs/angular.d.ts"/>
/* 3    */ /*
/* 4    *|  * decorates $compileProvider so that we have access to routing metadata
/* 5    *|  */
/* 6    */ function compilerProviderDecorator($compileProvider, $$directiveIntrospectorProvider) {
/* 7    */     var directive = $compileProvider.directive;
/* 8    */     $compileProvider.directive = function (name, factory) {
/* 9    */         $$directiveIntrospectorProvider.register(name, factory);
/* 10   */         return directive.apply(this, arguments);
/* 11   */     };
/* 12   */ }
/* 13   */ /*
/* 14   *|  * private service that holds route mappings for each controller
/* 15   *|  */

Error:

SyntaxError: missing variable name /* 1 */ (function(){

without debug it works correct. angular_router

"angular-component-router": "^0.2.1",

dautushenka avatar Aug 16 '16 01:08 dautushenka

the same problem - if $min_concatOnly = false; then

})(jQuery);
;/*! http://mths.be/placeholder v2.0.7 by @mathias */
;(function(window, document, $) {

will be parsed as:

/* 340 */ })(jQuery);

;
/* jquery.placeholder.js */

/* 1   */ /*! http://mths.be/placeholder v2.0.7 by @mathias */
/* 2   *| ;(function(window, document, $) {

arnisjuraga avatar Dec 23 '16 19:12 arnisjuraga