Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- fix invalid js syntax due to possible trailing comma characters (",").
when esbuild minification is enabled, esbuild condenses the original javascript code prepared by `GenericLoader.parseToJs`, and replaces the newlines with with either a semicolon or a comma delimiter (";" or ","). this means that when we strip away our dynamic import statements and `imports_beginning_marker` and `imports_ending_marker`, we will be potentially left with a bunch of commas with nothing in between, resulting in an incorrect js code, therefore becoming un-importable by `GenericLoader.unparseFromJs`.
- Loading branch information