Microbundle: Empty source map

Created on 11 Jan 2018  路  7Comments  路  Source: developit/microbundle

.map file has empty sourse map
{"version":3,"file":"bundle.m.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}

used version 0.2.4

All 7 comments

FWIW, reverting to v0.2.3 fixes the issue for my project. Using v0.2.4+ results in similarly empty sourcemaps.

It's likely due to replace plugin. Were either of you able to verify this is still happening on 0.3.x?

Yes, I noticed it using 0.3.1

I think npm update should pull down new versions of rollup-plugin-postprocess and rollup-plugin-preserve-shebang, which should fix Source Maps. Let me know if you have a chance to check!

Hmm, no dice. npm update didn't pull down [email protected] or [email protected]. In fact, I don't see where postprocess is referenced. What is that a dependency of?

I tried manually installing the two packages at the above versions but it still didn't seem to work.

I can try to get my project up on github a bit later tonight if that will help with debugging. Let me know!

You can view my project here. It's a very small amount of code, so hopefully it's easy to parse through: https://github.com/dontgoplastic/tab-nav

Fingers crossed that this is helpful and that I'm not just doing something completely bone-headed! :)

This is fixed in 0.4.1.
(rollup-plugin-flow doesn't emit proper sourcemaps so I've patched it)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

omgovich picture omgovich  路  16Comments

wcastand picture wcastand  路  16Comments

zzswang picture zzswang  路  14Comments

developit picture developit  路  14Comments

scttcper picture scttcper  路  11Comments