-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for generating sourcemaps
The CLI now accepts a `--sourcemap` option that should match the behaviour of `esbuild`'s `--sourcemap` option. The programmatic API's `esbuild.sourcemap` option should now also match with `esbuild`'s `sourcemap` option for the Build API. The `sourcemap: 'linked'` option is special cased in the implementation, since `esbuild` doesn't support the option under the Transform API that `mkdist` uses [^1]. Refs: https://esbuild.github.io/api/#sourcemap Refs: https://sourcemaps.info/spec.html [^1]: https://github.com/evanw/esbuild/blob/745abd9f0c06f73ca40fbe198546a9bc36c23b81/pkg/api/api_impl.go#L1749
- Loading branch information
1 parent
818b664
commit d8f7dc5
Showing
3 changed files
with
104 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters