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:
parent
66ab0d98d7
commit
d01ecc18d5
|
@ -23,7 +23,7 @@ module.exports = {
|
||||||
// setup for requirejs
|
// setup for requirejs
|
||||||
const ui_path = path.relative(base_out_path,
|
const ui_path = path.relative(base_out_path,
|
||||||
path.join(script_base_path, 'app', 'ui'));
|
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(() => {
|
.then(() => {
|
||||||
console.log(`Please place RequireJS in ${path.join(script_base_path, 'require.js')}`);
|
console.log(`Please place RequireJS in ${path.join(script_base_path, 'require.js')}`);
|
||||||
const require_path = path.relative(base_out_path,
|
const require_path = path.relative(base_out_path,
|
||||||
|
|
Loading…
Reference in New Issue