Skip to content

Commit

Permalink
[main] load transpiled scripts for IE for PDFE, SSE and PE
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkadushkin committed Aug 19, 2024
1 parent 6063b95 commit c5e6165
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/pdfeditor/main/index.html.deploy
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@
<script>
function startApp() {
var script = document.createElement("script");
script.setAttribute("data-main", "app");
script.setAttribute("data-main", isIE === true ? "ie/app" : "app");
script.src = "../../../vendor/requirejs/require.js";
document.body.appendChild(script);
}
Expand Down
5 changes: 4 additions & 1 deletion apps/presentationeditor/main/index.html.deploy
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,10 @@
<inline src="../../common/main/resources/img/combo-border-size/BorderSize.svg" />
<div class="inlined-svg"></div>
<script src="../../../../../../sdkjs/common/device_scale.js?__inline=true"></script>
<script data-main="app" src="../../../vendor/requirejs/require.js"></script>
<script src="../../../vendor/requirejs/require.js"></script>
<script>
isIE === true ? require(['ie/app']) : require(['app']);
</script>

</body>
</html>
5 changes: 4 additions & 1 deletion apps/spreadsheeteditor/main/index.html.deploy
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,9 @@
<inline src="resources/img/cf-icons.svg" />
<div class="inlined-svg"></div>
<script src="../../../../../../sdkjs/common/device_scale.js?__inline=true"></script>
<script data-main="app" src="../../../vendor/requirejs/require.js"></script>
<script src="../../../vendor/requirejs/require.js"></script>
<script>
isIE === true ? require(['ie/app']) : require(['app']);
</script>
</body>
</html>
10 changes: 10 additions & 0 deletions build/pdfeditor.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,16 @@
"text": "../vendor/requirejs-text/text"
}
}
},
"babel": {
"files": [
{
"expand": true,
"cwd": "../deploy/web-apps/apps/pdfeditor/main/",
"src": "*.js",
"dest": "../deploy/web-apps/apps/pdfeditor/main/ie"
}
]
}
},
"less": {
Expand Down
10 changes: 10 additions & 0 deletions build/presentationeditor.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,16 @@
"text": "../vendor/requirejs-text/text"
}
}
},
"babel": {
"files": [
{
"expand": true,
"cwd": "../deploy/web-apps/apps/presentationeditor/main/",
"src": "*.js",
"dest": "../deploy/web-apps/apps/presentationeditor/main/ie"
}
]
}
},
"less": {
Expand Down
10 changes: 10 additions & 0 deletions build/spreadsheeteditor.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,16 @@
"text": "../vendor/requirejs-text/text"
}
}
},
"babel": {
"files": [
{
"expand": true,
"cwd": "../deploy/web-apps/apps/spreadsheeteditor/main/",
"src": "*.js",
"dest": "../deploy/web-apps/apps/spreadsheeteditor/main/ie"
}
]
}
},
"less": {
Expand Down

0 comments on commit c5e6165

Please sign in to comment.