Merge pull request #2855 from overleaf/msm-update-modules-imports-esm

Update modules-ide and modules-main to generate ESM modules

GitOrigin-RevId: 2463591afd50a71cf6a4f728b54db3289f9c13ed
This commit is contained in:
nate stemen 2020-05-21 14:30:34 -04:00 committed by Copybot
parent a45df5e3af
commit 49066b6ffe
2 changed files with 2 additions and 2 deletions

View file

@ -20,6 +20,6 @@ if (fs.existsSync(MODULES_PATH)) {
module.exports = function() { module.exports = function() {
return { return {
code: `define(['${entryPoints.join("', '")}'], function() {})` code: entryPoints.map(entryPoint => `import '${entryPoint}'`).join('\n')
} }
} }

View file

@ -20,6 +20,6 @@ if (fs.existsSync(MODULES_PATH)) {
module.exports = function() { module.exports = function() {
return { return {
code: `define(['${entryPoints.join("', '")}'], function() {})` code: entryPoints.map(entryPoint => `import '${entryPoint}'`).join('\n')
} }
} }