Update modules-ide and modules-main to generate ESM modules GitOrigin-RevId: 2463591afd50a71cf6a4f728b54db3289f9c13ed
@@ -20,6 +20,6 @@ if (fs.existsSync(MODULES_PATH)) {
module.exports = function() {
return {
- code: `define(['${entryPoints.join("', '")}'], function() {})`
+ code: entryPoints.map(entryPoint => `import '${entryPoint}'`).join('\n')
}