Code Monkey home page Code Monkey logo

Comments (5)

mtscout6 avatar mtscout6 commented on June 17, 2024

Would it really be that difficult to support? It could be exposed by passing all options along instead of just the bare option.

from broccoli-coffee.

joliss avatar joliss commented on June 17, 2024

The big blocker is that we don't currently support multi-file input and output in the broccoli-filter base class, which is responsible for caching (smart rebuilding).

Source maps are fairly complex in general, but maybe it's not terribly hard to add support. Here's a checklist:

  • Source map support should just work by default and not require manual configuration. E.g. we can put it behind a boolean flag (which we can default to true once it's stable).
  • References from .js to .js.map files need to work
  • References from .js.map to .coffee sources need to work - either by copying the sources into the output tree, or by inlining them into the sourcesContent source map property
  • Chained transformation should work as well, i.e. having an input source map as well as an output source map. Again, when an input source map is present, things should just work and not require manual configuration.

from broccoli-coffee.

kylecordes avatar kylecordes commented on June 17, 2024

Regardless of the difficulty, my sense of things from watching the attention shift around among various build/task running tools is that users will expect a plug-in supports "X" to support generally most of the feature set of X.

from broccoli-coffee.

joliss avatar joliss commented on June 17, 2024

This might be adequately implemented by #9.

from broccoli-coffee.

kimroen avatar kimroen commented on June 17, 2024

Version 1.11.0 of CoffeeScript contains some changes that might be relevant to this:

Added the -M, --inline-map flag to the compiler, allowing you embed the source map directly into the output JavaScript, rather than as a separate file.

http://coffeescript.org/#changelog

from broccoli-coffee.

Related Issues (10)

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.