Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Babel plugin support #44

Closed
4 of 6 tasks
lijunle opened this issue Nov 11, 2015 · 4 comments
Closed
4 of 6 tasks

Babel plugin support #44

lijunle opened this issue Nov 11, 2015 · 4 comments
Labels

Comments

@lijunle
Copy link
Member

lijunle commented Nov 11, 2015

From @lijunle on October 26, 2015 19:29

In .babelrc:

{
  "stage": 2,
  "env": {
    "development": {
      "plugins": [
        "react-transform"
      ],
      "extra": {
        "react-transform": {
          "transforms": [{
            "transform": "react-transform-hmr",
            "imports": ["react"],
            "locals":  ["module"]
          }]
        }
      }
    }
  }
}

Expected packages:

  • babel-plugin-react-transform
  • react-transform-hmr

Work items:

  • The configs in .babelrc file.
  • Configs with options (example).
  • The configs in envionment (example).
  • The configs in package.json (example).
  • The configs in Babel CLI. (see note below)
  • The configs in API calls. (see note below)

Note: It need more affect to support Babel plugins in CLI and API calls. They are not recommended by Babel. Please open an issue and let me know the reason if anybody think they are necessary.

Copied from original issue: lijunle#97

@lijunle
Copy link
Member Author

lijunle commented Nov 11, 2015

From @js08 on October 27, 2015 21:45

@lijunle any idea how to fix it

@lijunle
Copy link
Member Author

lijunle commented Nov 11, 2015

Babel is shipping 6.x with new plugin syntax. No idea if that is related.

Reference: http://babeljs.io/blog/2015/10/29/6.0.0/

@lijunle
Copy link
Member Author

lijunle commented Nov 11, 2015

Reopen the issue because react-transform-hmr is another issue.

@lijunle
Copy link
Member Author

lijunle commented Nov 11, 2015

Babel support is basically there - #39

babel-plugin-react-transform transformers is tracked by another issue - #45

Close this issue.

@lijunle lijunle closed this as completed Nov 11, 2015
gtanner pushed a commit to gtanner/depcheck that referenced this issue Jan 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant