Skip to content

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

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();
}
`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions