Skip to content

Commit

Permalink
[deploy] fix for IE
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkadushkin committed Dec 10, 2024
1 parent 6b2639b commit 3d6b90f
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
23 changes: 22 additions & 1 deletion build/appforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}
10 changes: 10 additions & 0 deletions build/appforms.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 3d6b90f

Please sign in to comment.