Closed AshleyGrant closed 7 years ago
@AshleyGrant Seems like you figured out what was going wrong. Is the fix pretty straight forward? Any chance of a PR?
The only thing I've figured out so far is that I'm not exactly sure how source maps worked in the first place. The two lines here: https://github.com/aurelia/cli/blob/master/lib/build/concat-with-sourcemaps/index.js#L2 require from a module called source-map
, but that doesn't seem to be a dependency of the CLI.
Any idea how this is working? source-map
is in my node_modules
folder, but I need to figure out what is causing it to be installed.
Well, nevermind. I figured that out. It is a dependency of gulp-sourcemaps
which is a dev dep of an Aurelia CLI project, so that explains how that works.
It's coming in from another dependency. I can't remember which one though. It might be coming from gulp-sourcemaps or something like that.
I'm submitting a bug report
Please tell us about your environment:
Operating System: Windows 10
Node Version: 6.9.1
NPM Version: 3.10.8
Browser: all
Language: all
Current behavior:
Source maps for HTML files are not being added to
app-bundle.js.map
correctly. There are two issues.sources
array are being given as full absolute drive paths, e.g.C:/foo/src/app.html
sourcesContent
array hasnull
being placed in it for HTML files.This issue affects both TypeScript and JavaScript applications.