Closed simolus3 closed 2 months ago
Any chance that this work would/could allow for custom entrypoints / preambles, e.g. for node js runtimes?
I agree that we should support custom entrypoints, I'm not sure about the best way to allow that though. I've added a simple template as a builder option in aac8b6a7d6ad333799d21f7144e0648c295d020b, not sure if that's the best approach though.
@simolus3 let me know when this is ready to merge from your perspective and I will push the button!
This is ready from my side :+1:
I couldn't wait! Thanks SO MUCH!
Gah! I shouldn't have merged before trying it
[Error] Unhandled Promise Rejection: ReferenceError: Can't find variable: joinPathSegments
resolveUrlWithSegments (main.dart.js:3)
(anonymous function) (main.dart.js:25)
(anonymous function) (main.dart.js:1)
Global Code (main.dart.js:29)
See https://github.com/dart-lang/build/issues/3746 @simolus3 !
Also https://github.com/dart-lang/build/issues/3747 @simolus3
We're close!!!
This adds support for compiling with multiple compilers, typically with dart2js and dart2wasm. The updated readme explains how this works, but this essentially boils down to:
This doesn't change the defaults yet, we continue to use ddc for dev builds and dart2js for release builds.
Closes https://github.com/dart-lang/build/issues/3730.