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 #97

Closed
4 of 6 tasks
lijunle opened this issue Oct 26, 2015 · 4 comments
Closed
4 of 6 tasks

Babel plugin support #97

lijunle opened this issue Oct 26, 2015 · 4 comments
Labels

Comments

@lijunle
Copy link
Owner

lijunle commented Oct 26, 2015

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.

@js08
Copy link

js08 commented Oct 27, 2015

@lijunle any idea how to fix it

@lijunle
Copy link
Owner Author

lijunle commented Oct 29, 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
Owner Author

lijunle commented Nov 10, 2015

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

@lijunle
Copy link
Owner Author

lijunle commented Nov 11, 2015

This issue was moved to depcheck#44

@lijunle lijunle closed this as completed Nov 11, 2015
lijunle added a commit that referenced this issue Jan 24, 2016
Refactor getScript logic to a single file.
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

2 participants