mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 10:03:43 -05:00
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:
parent
a45df5e3af
commit
49066b6ffe
2 changed files with 2 additions and 2 deletions
|
@ -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')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue