absolvent / gore-gulp

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

Provide keys not always working correctly #39

Closed kl3ryk closed 9 years ago

kl3ryk commented 9 years ago

Use case:

// offerlist.entry.jsx
"use strict";

import OfferList from "absolvent.pl/React/OfferList";
// import React from "react";

var offerListConfig = JSON.parse(document.getElementById("OfferListConfig").textContent);
React.render(<OfferList {...offerListConfig} />, document.body);
{
    "alias": {},
    "dependencies": {},
    "devDependencies": {
        "browser-sync": "2.x",
        "gore-gulp": "0.x",
        "gulp": "3.x",
        "gulp-autoprefixer": "2.x",
        "gulp-concat": "2.x",
        "gulp-minify-css": "1.x",
        "gulp-sass": "1.x",
        "gulp-sourcemaps": "1.x",
        "react": "0.x"
    },
    "directories": {
        "lib": "./web_modules",
        "dist": "./web"
    },
    "engines": {
        "node": ">=0.12"
    },
    "externals": {},
    "provide": {
        "React": "react"
    },
    "name": "absolvent.pl",
    "private": true,
    "scripts": {
        "test": "gulp test"
    }
}

After compiling files there is the following error:

Uncaught ReferenceError: React is not defined