mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-13 21:53:43 +01: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:
@@ -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')
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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')
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user