What does browser.bootstrap stand for in dukescript projects?

67 views Asked by At

Every time I generate a new project using sample code, this appears in some comment: browser.bootstrap

<!-- ${browser.bootstrap} -->

Does it have some use? Is it necessary?

1

There are 1 answers

0
monacotoni On BEST ANSWER

It has some use. It's a placeholder. If you wan to run your project in a browser with TeaVM or bck2brwsr the required javascript code will be injected here. In all other projects it doesn't do anything. If you remove it, the project won't run in the browser.