absolvent / gore-gulp

Simple way to run and maintain React.js projects without any configuration.
MIT License
1 stars 0 forks source link

Provide plugin is not working correctly #40

Closed kl3ryk closed 9 years ago

kl3ryk commented 9 years ago

When using provide plugin as follows:

{
    "dependencies": {
        "jquery": "2.x"
    },
    "provide": {
        "$": "jquery"
    },
}
$(".foo").on("click", function () {

});

Everything is compiled properly, but when js is launched there is an error:

Uncaught ReferenceError: $ is not defined

This issue is similar to https://github.com/goreutils/gore-gulp/issues/39 but there is a special case just for React.