Don't use arrow functions in legacy loader

The browsers that need the legacy code do not support such fancy
modern things.
This commit is contained in:
Pierre Ossman 2019-11-12 10:25:18 +01:00 committed by Lauri Kasanen
parent 46f15667f7
commit 29db8997ec

View File

@ -23,7 +23,7 @@ module.exports = {
// setup for requirejs
const ui_path = path.relative(base_out_path,
path.join(script_base_path, 'app', 'ui'));
return writeFile(out_path, `requirejs(["${ui_path}"], (ui) => {});`)
return writeFile(out_path, `requirejs(["${ui_path}"], function (ui) {});`)
.then(() => {
console.log(`Please place RequireJS in ${path.join(script_base_path, 'require.js')}`);
const require_path = path.relative(base_out_path,