Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sourcemap improvements #624

Closed
2 of 3 tasks
JeroenVinke opened this issue May 10, 2017 · 5 comments
Closed
2 of 3 tasks

Sourcemap improvements #624

JeroenVinke opened this issue May 10, 2017 · 5 comments

Comments

@JeroenVinke
Copy link
Collaborator

JeroenVinke commented May 10, 2017

There are a couple things we should fix regarding sourcemaps.

The write function of the Bundler has too many responsibilities. We should extract source map generation into a different module, if possible

@EisenbergEffect
Copy link
Contributor

EisenbergEffect commented May 10, 2017 via email

simonfox added a commit to simonfox/cli that referenced this issue Jun 25, 2017
Some external libraries ship with sourcemaps with the dist package including a `sourcemapUrl` link. This link causes problems during bundling, and is specifically exposed by anonymous amd modules and SystemJS loader (RequireJS). This change modifies amodro to strip any existing `sourcemapURL` link from the source of a referenced library that is being bundled.

closes aurelia#659, related to aurelia#624
simonfox added a commit to simonfox/cli that referenced this issue Jun 26, 2017
Some external libraries ship with sourcemaps with the dist package including a `sourcemapUrl` link. This link causes problems during bundling, and is specifically exposed by anonymous amd modules and SystemJS loader (RequireJS). This change modifies amodro to strip any existing `sourcemapURL` link from the source of a referenced library that is being bundled.

closes aurelia#659, related to aurelia#624
@jholland918
Copy link
Contributor

Is debugging with sourcemaps supported when using WebPack? Or is it only supported for projects created using the requirejs/systemjs options? I ask because I'm trying out unit testing for a project using the WebPack option and I'm only able to debug through the transpiled JavaScript.

@Alexander-Taran
Copy link
Contributor

@jholland918 it is supported. depends on how you configure typescript/babel and webpack
HMR though breaks the maps.. after 1st hot injection

@Alexander-Taran
Copy link
Contributor

@3cp I think we're mostly ok here..

@3cp
Copy link
Member

3cp commented Jun 2, 2022

The cli-bundler is quite big without enough unit test coverage. I would not attempt fixing the source map :-)

The webpack setup should be fine, especially if you use jest.
Our webpack + jasmine uses some special patch to support aurelia's module loading. I am not surprised if something is not working correctly. That's probably @jholland918's setup.

If you encountered source map issue with webpack + jest with latest skeleton, please open a new issue.

@3cp 3cp closed this as not planned Won't fix, can't repro, duplicate, stale Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants