Search code examples
dukescript

What does browser.bootstrap stand for in dukescript projects?


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?


Solution

  • 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.