diff --git a/build/appforms.js b/build/appforms.js index e04a587406..373bd37d19 100644 --- a/build/appforms.js +++ b/build/appforms.js @@ -134,11 +134,32 @@ module.exports = (grunt) => { src: packageFile.forms.js.postload.options.out, dest: packageFile.forms.js.postload.options.out, }, + iecompat: { + options: { + sourceMap: false, + }, + files: [{ + expand: true, + cwd: packageFile.forms.js.babel.files[0].dest, + src: `*.js`, + dest: packageFile.forms.js.babel.files[0].dest + }] + }, + }, + + babel: { + options: { + sourceMap: false, + presets: [['@babel/preset-env', {modules: false}]] + }, + dist: { + files: packageFile.forms.js.babel.files + } }, }); }); grunt.registerTask('deploy-app-forms', ['forms-app-init', 'clean:prebuild', /*'imagemin',*/ 'less', - 'requirejs', 'terser', 'concat', 'copy', 'inline', /*'json-minify',*/ + 'requirejs', 'babel', 'terser', 'concat', 'copy', 'inline', /*'json-minify',*/ 'replace:varsEnviroment', /*'replace:prepareHelp',*/ 'clean:postbuild']); } diff --git a/build/appforms.json b/build/appforms.json index 5cd94556b7..59d92ba6e1 100644 --- a/build/appforms.json +++ b/build/appforms.json @@ -114,6 +114,16 @@ "text": "../vendor/requirejs-text/text" } } + }, + "babel": { + "files": [ + { + "expand": true, + "cwd": "../deploy/web-apps/apps/documenteditor/forms/", + "src": "*.js", + "dest": "../deploy/web-apps/apps/documenteditor/forms/ie" + } + ] } }, "less": {