GithubHelp home page GithubHelp logo

Comments (11)

dgrove avatar dgrove commented on May 31, 2024 1

Removing block label, as dart-lang/sdk#32188 has been closed.

from webdev.

alorenzen avatar alorenzen commented on May 31, 2024

Note, this is blocked by dart-lang/sdk#32188

from webdev.

kevmoo avatar kevmoo commented on May 31, 2024

We have a matrix here.

We could have webdev --preview-dart-2 run dart2js in the right mode.

But invoking webdev on the VM w/ --preview-dart-2 would be some other magic (likely pub global run --preview-dart-2 webdev or some such.

Then for the full effect: pub global run --preview-dart-2 webdev serve --preview-dart-2

from webdev.

handicraftsman avatar handicraftsman commented on May 31, 2024

dart-lang/sdk#32188 (comment)

from webdev.

kevmoo avatar kevmoo commented on May 31, 2024

This would ONLY work for dart2js. Users would have to use `DART_VM_OPTIONS=--preview-dart-2" for the VM.

Still interesting?

from webdev.

alorenzen avatar alorenzen commented on May 31, 2024

@kevmoo let's at least enable dart2js/ddc with passing --preview-dart-2 to build_runner. We should probably go ahead and turn this on by default.

It's a shame that there's no other way to enable for the VM, but hopefully we're close enough to flipping the default there that angulardart/angular#1353 is enough for now.

from webdev.

natebosch avatar natebosch commented on May 31, 2024

let's at least enable dart2js/ddc with passing --preview-dart-2 to build_runner.

There is no reasonable way to support this other that also plumbing special support for this flag through build_runner as well which would violate our goal of not having special understanding of the compilers.

We don't have any syntax to allow merging arguments in to some list of Strings option on a builder which is what would need to happen here.

from webdev.

dgrove avatar dgrove commented on May 31, 2024

We are going to flip the flag very soon on the SDK, so if you're willing to clean up afterwards, that's another possibility.

from webdev.

alorenzen avatar alorenzen commented on May 31, 2024

dart-lang/sdk#32188 didn't completely fix the issue, see dart-lang/sdk#33460. So we're still blocked here.

The work-around is to use DART_VM_OPTIONS=--preview-dart-2 pub global run webdev build

from webdev.

matanlurey avatar matanlurey commented on May 31, 2024

Is this done "enough" now that the default is Dart2?

from webdev.

kevmoo avatar kevmoo commented on May 31, 2024

from webdev.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.