Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Closed Issue: Optimizer JS Bundling bug with files that ends and starts with comments [807]

$
0
0
Hi,

When you bundle two files that the first one ending with one-line comment (//) and the second starts with multiline comment (/* */) the minifier throws an error.

For example

a.js
```
function foo() {
// ...
} // This is the last line comment.
```
b.js
```
/**
* Some copyrights
*/
function bar() {
// ...
}
```

The minification will firstly concat the files without newlines so the result will be
```
function foo() {
// ...
} // This is the last line comment. /**
* Copyrights
*/
function bar() {
// ...
}
```

Which, as can be seen, contains syntax error because of the comment prefix.
Since it's my first reported bug hope the format is OK and if there's any other information I'd provide - please say :)

Regards.
Comments: This issue is tracked at http://aspnetoptimization.codeplex.com/workitem/71.

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>