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 support #1789

Closed
mstoykov opened this issue Jan 11, 2021 · 1 comment
Closed

Sourcemap support #1789

mstoykov opened this issue Jan 11, 2021 · 1 comment
Assignees

Comments

@mstoykov
Copy link
Contributor

goja recently fixed a bunch of issues with sourcemaps and it might be useful to support them in k6 as well.

This will need to include:

  1. support for k6 cloud/archive
  2. way to disable it in case users don't want it or it too costly or they don't have the sourcemaps, as in this case it will not compile parse
  3. babel needs to produce sourcemaps
  4. benchmark the performance difference
@mstoykov
Copy link
Contributor Author

Some educational resources:

  • video explaining source maps
  • a medium post with good illustrations of some of the things
  • the spec and the doc

mstoykov added a commit that referenced this issue Dec 17, 2021
This includes both support for any sourcemap found through the source
file and generating sourcemaps when going through babel.

There are additional fixes for trying to fix off by 1 line errors in
imports, but those may need further work.

On not being able to load a sourcemap a warning is emitted but the file
is still parsed and compiled just without sourcemaps

fixes #1789, #1804
mstoykov added a commit that referenced this issue Dec 17, 2021
This includes both support for any sourcemap found through the source
file and generating sourcemaps when going through babel.

There are additional fixes for trying to fix off by 1 line errors in
imports, but those may need further work.

On not being able to load a sourcemap a warning is emitted but the file
is still parsed and compiled just without sourcemaps

fixes #1789, #1804
mstoykov added a commit that referenced this issue Jan 5, 2022
This includes both support for any sourcemap found through the source
file and generating sourcemaps when going through babel.

There are additional fixes for trying to fix off by 1 line errors in
imports, but those may need further work.

On not being able to load a sourcemap a warning is emitted but the file
is still parsed and compiled just without sourcemaps

fixes #1789, #1804
mstoykov added a commit that referenced this issue Jan 5, 2022
This includes both support for any sourcemap found through the source
file and generating sourcemaps when going through babel.

There are additional fixes for trying to fix off by 1 line errors in
imports, but those may need further work.

On not being able to load a sourcemap a warning is emitted but the file
is still parsed and compiled just without sourcemaps

fixes #1789, #1804
mstoykov added a commit that referenced this issue Jan 12, 2022
This includes both support for any sourcemap found through the source
file and generating sourcemaps when going through babel.

There are additional fixes for trying to fix off by 1 line errors in
imports, but those may need further work.

On not being able to load a sourcemap a warning is emitted but the file
is still parsed and compiled just without sourcemaps

fixes #1789, #1804
mstoykov added a commit that referenced this issue Jan 12, 2022
This includes both support for any sourcemap found through the source
file and generating sourcemaps when going through babel.

There are additional fixes for trying to fix off by 1 line errors in
imports, but those may need further work.

On not being able to load a sourcemap a warning is emitted but the file
is still parsed and compiled just without sourcemaps

fixes #1789, #1804
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

1 participant