diff --git a/node/utils/Minify.js b/node/utils/Minify.js index c078c5c6..859ee07a 100644 --- a/node/utils/Minify.js +++ b/node/utils/Minify.js @@ -223,6 +223,7 @@ function getAceFile(callback) { if (!settings.minify) { founds = []; } + founds.push('$$INCLUDE_JS("../static/js/require-kernel.js")'); data += ';\n'; data += 'Ace2Editor.EMBEDED = Ace2Editor.EMBEDED || {};\n'; diff --git a/static/js/ace.js b/static/js/ace.js index 4a313727..3fdfa05e 100644 --- a/static/js/ace.js +++ b/static/js/ace.js @@ -217,15 +217,11 @@ function Ace2Editor() return {embeded: embededFiles, remote: remoteFiles}; } function pushRequireScriptTo(buffer) { - /* Folling is for packaging regular expression. */ - /* $$INCLUDE_JS("../static/js/require-kernel.js"); */ var KERNEL_SOURCE = '../static/js/require-kernel.js'; if (Ace2Editor.EMBEDED && Ace2Editor.EMBEDED[KERNEL_SOURCE]) { buffer.push('