Hello,
How do I make Closure Compiler preserve the ES "export" statements I write in the code?
To clarify my use case, I have a collection of .js files that I want to compile into a single ES module file that can be included by other projects (like Chrome Extensions; most likely they are built without Closure Compiler). Previously I successfully used traditional exports (goog.exportSymbol() et al.) for this, but now I'm trying to migrate this to ES "export" statements (the main driver is that my library will be used in Manifest V3 Chrome Extensions that require the usage of ES modules).
Thanks,
Maksim