Skip to content

Commit

Permalink
Fix source file path
Browse files Browse the repository at this point in the history
  • Loading branch information
nlunets committed Feb 12, 2020
1 parent 3e98504 commit 8a874cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/lbt/bundle/Builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ class BundleBuilder {
resourceName = path.posix.relative(path.posix.dirname(this._sourceMap._file), resourceName);
if (resourceSourceMap != null) {
resourceSourceMap = JSON.parse(resourceSourceMap);
resourceSourceMap.sources[0] = resourceName;
resourceSourceMap.sources[0] = path.posix.join(path.posix.dirname(resourceName), resourceSourceMap.sources[0]);
}
const result = terser.minify({
[resourceName]: code
Expand Down
7 changes: 3 additions & 4 deletions test/expected/build/application.j/dest/Component-preload.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8a874cb

Please sign in to comment.