Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a node compilation target #59864

Open
buergerling opened this issue Jan 8, 2025 · 1 comment
Open

Add a node compilation target #59864

buergerling opened this issue Jan 8, 2025 · 1 comment
Labels
area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. triage-automation See https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot. type-enhancement A request for a change that isn't a bug

Comments

@buergerling
Copy link

buergerling commented Jan 8, 2025

dartjs compiles for use in the browser by making use of the self property. Running on node requires the manual addition of a preamble, which is an unacceptable procedure and runs counter to the purpose of a compiler. The user of the compiler cannot know what other problems need to be solved for execution on the node platform. Dart is advertised as a language that can also be executed on the server side. This issue is particularly relevant for serverless execution.

@dart-github-bot
Copy link
Collaborator

Summary: Users need a Node.js compilation target for dartjs. Currently, Node.js support requires manual preambles, hindering server-side and serverless use.

@dart-github-bot dart-github-bot added area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. triage-automation See https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot. type-enhancement A request for a change that isn't a bug labels Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. triage-automation See https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot. type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

2 participants