Coder Social home page Coder Social logo

react-transform's Introduction

react-transform

React Transform specifies a common API for an ecosystem of React component instrumentation.
Just kidding, it doesn’t specify anything yet.

For now, refer to (the only) reference implementation: babel-plugin-react-transform.
If there is enough interest, we can make this work outside of Babel.

You can also geek out at react-transform-boilerplate:

react-transform's People

Contributors

gaearon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

react-transform's Issues

CoffeeScript / non-babel implementation?

To not have to reload the browser after fixing an error is purely amazing!!

Does anyone have an interest in getting this to work for non-babel projects? "Classical" javascript or CoffeeScript people perhaps?

Production

Hello,

I have a transform used in production, let's say a sentry reporter.
I am getting this error 'File/Program node, we can't possibly find a statement parent to this'.

in my babelrc for production i use :

"env": {
      "production": {
        "optional": [
          "optimisation.react.constantElements",
          "optimisation.react.inlineElements",
          ],
          "plugins": ["react-transform"],
          "extra": {
            "react-transform": {
              "transforms": [{
                 "transform": "./react-transform-sentry-errors",
                 "imports": ["react","raven-js"],
                 "locals": ["'https://sentry@dns"]
               }]
            }
          }
      },
      "development": {
        "plugins": ["react-transform"],
        "extra": {
          "react-transform": {
            "transforms": [
            {
              "transform": "react-transform-hmr",
              "imports": ["react"],
              "locals": ["module"]
            },
            {
              "transform": "react-transform-catch-errors",
              "imports": ["react", "redbox-react"]
            },           
            ]
          }
        }
      }

if i remove "optimisation.react.constantElements" the webpack build is ok.

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.