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 warning: Unexpected generated column decrease #378

Closed
TheSpyder opened this issue Sep 11, 2020 · 2 comments
Closed

Sourcemap warning: Unexpected generated column decrease #378

TheSpyder opened this issue Sep 11, 2020 · 2 comments

Comments

@TheSpyder
Copy link

I'm working with SlateJS in an app and am evaluating a switch to esbuild for bundling. However when I turn on --sourcemap in esbuild, I get a warning about Slate's sourcemap:

node_modules/slate/dist/index.es.js.map:1:162026: warning: Bad "mappings" data in source map at character 313: Unexpected generated column decrease
..."isLast","isInlineOrText","newChild","previousPath","oldAncestors","newAncestors","nextPath"],"mappings":";;;;AAAe,SAAS,eAAe,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE;EACvD,IAAI,GAAG,IAAI,GAAG,EAAE;IACd,MA...
                                                                                                 ~~~~~~~~~~
1 warning

Slate uses rollup to generate the index.es.js sourcemap, so I am assuming this is an esbuild bug, but if not I'm happy to log this with the appropriate project.

Replication repo: https://github.com/TheSpyder/esbuild-slate-sourcemap

@TheSpyder TheSpyder changed the title Sourcemap error: Unexpected generated column decrease Sourcemap warning: Unexpected generated column decrease Sep 11, 2020
@evanw evanw closed this as completed in b7316d8 Sep 11, 2020
@evanw
Copy link
Owner

evanw commented Sep 11, 2020

Thanks for the report! This should be fixed in version 0.6.34.

@TheSpyder
Copy link
Author

Yes, the update fixes the problem for me. Thank you for the fast turnaround!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants