Skip to content

Source maps are lost during bundling. #401

Closed
@MicahZoltu

Description

The sourcemap for ethers.min.js is not the original easy-to-read TypeScript, but instead the compiled TypeScript output. The build system appears to be dropping the TypeScript sourcemap when minifying/bundling down to ethers.min.js. It would be nice if the build system kept the original TypeScript in the source map instead.

I think most major build tools know how to merge sourcemaps, so if you are generating TS source maps the bundler/minifier should be able to turn those into a single bundled source map. Of course, the process is different for every bundler.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvement.fixed/completeThis Bug is fixed or Enhancement is complete and published.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions