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

上 typescript 后无法按需加载 #6

Open
XueSeason opened this issue Nov 17, 2017 · 1 comment
Open

上 typescript 后无法按需加载 #6

XueSeason opened this issue Nov 17, 2017 · 1 comment

Comments

@XueSeason
Copy link

This plugin is useless when use typescript.

Here is my config content

.babelrc content:

{
  "plugins": [
    "recharts"
  ],
  "presets": [
    "env",
    "stage-0",
    "react"
  ]
}

tsconfig.json content:

{
  "compilerOptions": {
    "outDir": "./dist/",
    "sourceMap": true,
    "noImplicitAny": true,
    "module": "commonjs",
    "target": "es6",
    "jsx": "preserve"
  },
  "include": [
    "./src/**/*"
  ]
}

webpack config loaders' content:

{
  test: /\.tsx?$/,
  use: [{
    loader: 'babel-loader'
  }, {
    loader: 'awesome-typescript-loader'
  }],
  exclude: /node_modules/
}
@tuberrabbit
Copy link

I have the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants