diff --git a/Makefile.dryice.js b/Makefile.dryice.js index aa9fb3521d6..fb21437516c 100755 --- a/Makefile.dryice.js +++ b/Makefile.dryice.js @@ -190,6 +190,7 @@ function buildTypes() { var pathModules = [ "declare module 'ace-builds/webpack-resolver';", + "declare module 'ace-builds/esm-resolver';", "declare module 'ace-builds/src-noconflict/ace';" ].concat(paths.map(function(path) { if (moduleNameRegex.test(path)) { diff --git a/tool/esm_resolver_generator.js b/tool/esm_resolver_generator.js index 9ca13b5bcdc..b07e52ec20e 100644 --- a/tool/esm_resolver_generator.js +++ b/tool/esm_resolver_generator.js @@ -8,7 +8,7 @@ function buildResolver() { return `ace.config.setModuleLoader('${moduleName}', () => import('./${moduleName.replace("ace", "src") + ".js"}'));`; }).join('\n') + "\n\nexport * as default from \"./src/ace\";"; - var declaration = generateDeclaration(); + var declaration = 'export * from "./ace"'; fs.writeFileSync(__dirname + '/../esm-resolver.js', loader, "utf8"); fs.writeFileSync(__dirname + '/../esm-resolver.d.ts', declaration, "utf8"); @@ -41,8 +41,4 @@ function getModuleNames() { return paths; } -function generateDeclaration() { - return "export * from \"ace-code\";" -} - buildResolver();