Giter Site home page Giter Site logo

Comments (5)

sethladd avatar sethladd commented on June 8, 2024

interesting... I didn't realize that pub build doesn't just delete the entire build/ dir.

I assume 'built with app' means pub build ?

from dart_to_js_script_rewriter.

devoncarew avatar devoncarew commented on June 8, 2024

Yup; using pub build meant I could see the problem in the compiled app (what I was debugging), but had a hard time because of the minification. pub build --mode=debug built the debuggable version of the app but this transformer didn't run on the index.html file; the app didn't start.

I realized I could have worked around it by changing the foo.dart application/dart reference to the compiled ref - foo.dart.js.

from dart_to_js_script_rewriter.

sethladd avatar sethladd commented on June 8, 2024

I was confused why this didn't work for you in debug mode. Then I saw this: Note that I am not using the browser packages dart.js file; I use this transformer instead.

You can leave the dart.js file in your index.html, because this transformer removes the dart.js reference when you do a production build.

from dart_to_js_script_rewriter.

devoncarew avatar devoncarew commented on June 8, 2024

Yeah, I should probably just leave browser in (perhaps move it to a dev dependency).

from dart_to_js_script_rewriter.

sethladd avatar sethladd commented on June 8, 2024

Yes, leave browser's dart.js in your HTML and this transformer will remove it. Or should. If it doesn't, it's a bug in this transformer.

from dart_to_js_script_rewriter.

Related Issues (16)

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.