Skip to content

can not transform react in react-redux  #209

Closed
@Tankpt

Description

@Tankpt

Here is my config

"dependencies":{
  "react": "^0.14.0",
  "react-dom": "^0.14.0",
  "react-redux": "^4.0.4",
  "redux": "^3.0.0",
},
"devDependencies":{
  "browserify": "~13.0.0",
  "browserify-shim": "~3.8.12",
},
"browserify": {
  "transform": [ "browserify-shim" ]
},
"browserify-shim": {
  "react": "global:React",
  "react-dom": "global:ReactDOM"
},
browserify -x react -x react-dom -s redux -e ./node_modules/react-redux > redux.js

I still find require('react') in the build file

var _react = require('react');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions