[documentation] documentation on how to compile dart to js for a non-web target with webdev build #2432
Labels
P3
A lower priority bug or feature request
package:webdev
triaged
type-documentation
A request to add or improve documentation
I want to compile dart to js for a non-web target (eg. fermyon/js, node)
I'm told it's possible with 2 possible approaches:
it would be nice to have some documentation on how to achieve this the
1.
approach.I admit that this is a skill issue rather than a dart issue
but maybe I'm not the only developer facing this and a minimal example would be great
here is a reproducible setup/example using
node
(repo)node example
tsconfig.json
with the code belowsrc/index.ts
with the code belowhow can I create an equivalent
import it and use it in
index.ts
?notes
cc
@maks & @sigmundch from dart-lang/sdk#53884
@nex3 I've been told on Twitter that you have experience with this use case from
sass
The text was updated successfully, but these errors were encountered: