I am trying to build but I have this situation
- Files in
bin
are server files and don't need to be compiled to js. - Server files us
async/await
while client files don't. The server is run with the--enable-async
VM option. - Client files should be treeshaked/minified JS.
- Client files should ALSO be treeshaked/minified (if possible) to Dart.
Currently I include this in my pubspec.yaml
- $dart2js:
$exclude: bin
because I get an error for using async
on the server. If I include the async_await
transformer I get even more errors (in fact I had to role back to using then
on the client).
The real question is how to get efficient server and client dart files, and get efficient client js files out of the build process.