I have a code base that uses the google-closure style modules goog.provide and classes, etc.
I want to modernize this code base but it's roughly 15k lines of code and I was hoping a tool could help me.
These tools are broken, I tried many things to get them to work but they just wont. It's a lost cause. https://github.com/angular/clutz https://github.com/DreierF/closure-es6-converter
I think If I had a tool to update the closure classes and modules to the ES6 variants, I could do everything else by hand.
This tool works to update to a modern ES6 class syntax, but notably doesn't update the closure modules. https://github.com/lebab/lebab
Would this tool allow me to convert closure modules to es6 modules? Or does it only produce a minified output. https://webpack.js.org/plugins/closure-webpack-plugin/#usage-example
There are 2 documents you should read about this:
ES6 modules and Closure interop
and
Migrating from goog.modules to ES6 modules
Some highlights from each:
And