kaitai-io / kaitai_struct

Kaitai Struct: declarative language to generate binary data parsers in C++ / C# / Go / Java / JavaScript / Lua / Nim / Perl / PHP / Python / Ruby
https://kaitai.io
4.04k stars 199 forks source link

ES Modules output support for Javascript #994

Closed raymond-h closed 2 years ago

raymond-h commented 2 years ago

I think it's finally time to add support for outputting ES Modules. At this point they are widely supported across the entire ecosystem of browsers, NodeJS, and various tools that work with JS. It should probably be supported as an option alongside the existing UMD output for now.

generalmimon commented 2 years ago

I believe that https://github.com/kaitai-io/kaitai_struct/issues/267 is a superset of what you propose here, so perhaps you can look what's been already suggested and add your comment there?

I'm closing this issue as duplicate then.