Now that we've moved from the requirejs optimizer to webpack, we don't need a javascript file to start from anymore. We can start from a init.ts file in the source directory, and move through from there. Here's a quick example I threw together:
ui/main.ts
function main() {
// run the script
}
export default main;
init.ts
import main from "ui/main.ts";
// we're ready to start the script
main();
Is there an existing issue for this?
Description
Now that we've moved from the requirejs optimizer to webpack, we don't need a javascript file to start from anymore. We can start from a init.ts file in the source directory, and move through from there. Here's a quick example I threw together:
ui/main.ts
init.ts
Are there alternatives you've considered?
No response