Code Monkey home page Code Monkey logo

Comments (9)

jwhitley avatar jwhitley commented on August 10, 2024

Thanks. I could special-case the use key here, but that doesn't cover any other plugin that decides to piggyback on require.config settings. It might be nice to have a simplified API for adding plugin keys, ala:

config.requirejs.config_whitelist << 'use'

The values of config_whitelist would be added to both of the internal whitelists.

Also, if a key is blocked by a whitelist an error should be logged both in Rails at runtime and by rake assets:precompile. This will alert users to simple misspellings and allow for pointers to specific troubleshooting advice, ala what require.js and r.js do now.

from requirejs-rails.

jwhitley avatar jwhitley commented on August 10, 2024

Noting that per some discussion on the requirejs list, use support (sometimes,always?) needs findNestedDependencies set.

from requirejs-rails.

smith avatar smith commented on August 10, 2024

RequireJS 2.0 supports the shim property which can replace this. Please close.

from requirejs-rails.

jwhitley avatar jwhitley commented on August 10, 2024

@smith, thanks for the reminder. closing.

from requirejs-rails.

jbasdf avatar jbasdf commented on August 10, 2024

Does the current version of requirejs-rails use require.js 2.0?

from requirejs-rails.

smith avatar smith commented on August 10, 2024

Not yet, but there are a couple pull requests and a branch being worked on, so it should drop soon. My Gemfile is pointed at git://github.com/stammy/requirejs-rails.git and it's working for me.

from requirejs-rails.

jwhitley avatar jwhitley commented on August 10, 2024

Sorry for the delay in the release; been very busy lately. I should have it up tonight, if the wifi on my return flight is working, or else I'll get it up tomorrow (Thu) AM.

from requirejs-rails.

jbasdf avatar jbasdf commented on August 10, 2024

No worries. Sorry I'm not more help. I'll to to be useful by testing it out.

from requirejs-rails.

smith avatar smith commented on August 10, 2024

Note that 2.0.2 is out too :)

from requirejs-rails.

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.