New line is missing after sourceMappingURL hint causing next merged file be on the same line as the comment:
// some code
gento_Theme/js/theme"]})}(require);
//# sourceMappingURL=requirejs-bundle-config.js.map;try { <==== this is a problem
if (!window.localStorage || !window.sessionStorage) {
throw new Error();
}
localStorage.setItem('storage_test', 1);
localStorage.removeItem('storage_test');
Steps to reproduce:
- Install Baler, Magento Baler module;
- Fulfil Baler requirements: JS bundling, minification are disabled;
- Generate static and Baler bundles;
- Generated
requirejs-bundle-config.js and balerbundles/core-bundle.js have no new line in the end
- Merged JS files are invalid.
core-bundle (copy).zip
requirejs-bundle-config.zip
New line is missing after
sourceMappingURLhint causing next merged file be on the same line as the comment:Steps to reproduce:
requirejs-bundle-config.jsandbalerbundles/core-bundle.jshave no new line in the endcore-bundle (copy).zip
requirejs-bundle-config.zip