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

Question: Is there an option to compile dart:io libraries without implementation? #3614

Open
ykmnkmi opened this issue Nov 18, 2023 · 1 comment

Comments

@ykmnkmi
Copy link

ykmnkmi commented Nov 18, 2023

I'm trying to use some libraries in a web application that depend on the watcher package's ChangeType and the file package's MemoryFileSystem classes. I can compile the application with dart2js, but not with ddc. As the application grows, the compile time also increases.

@jakemac53
Copy link
Contributor

We do not support compiling web projects with unsupported imports. This shouldn't be allowed even for dart2js builds using build_runner, although regular dart2js may support it.

The file package is an interesting case, because it is using dart:io just as an interface. I do wish we had the ability to support that, but in general dart:io is not supposed to be allowed, an exception was made only for flutter web and the intention has always been that it should be temporary. We don't want to proliferate that exception to any web project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants