0

I've created a large library in Dart that need to be called from JavaScript. I'd like to avoid using JS Interop if possible. Can I use the Dart Dev Compiler to do this?

Is it possible to take the JavaScript code generated by DDC and easily call it directly?

jfp
  • 381
  • 1
  • 3
  • 8

1 Answers1

0

I'm guessing you'll need some @JS because otherwise, the tree-shaking will likely remove any need for the very entrypoints you want, and the code won't even be there.

Randal Schwartz
  • 39,428
  • 4
  • 43
  • 70