Skip to content

Move self executiong function declaration from src code into code builder #4

@va4ok

Description

@va4ok

`import { Utils } from './utils/utils.js';
import { ControlBarModern } from "./control-bar/control-bar-spa";
import { ControlBarLegacy } from "./control-bar/control-bar-legacy";

(function () {
'use strict';

if (Utils.isModern()) {
new ControlBarModern();
} else {
new ControlBarLegacy();
}
})();
`

`import { Utils } from './utils/utils.js';
import { ControlBarModern } from "./control-bar/control-bar-spa";
import { ControlBarLegacy } from "./control-bar/control-bar-legacy";

if (Utils.isModern()) {
new ControlBarModern();
} else {
new ControlBarLegacy();
}
`

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions