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/typescript preset #43

Open
pedroteixeira opened this issue Feb 15, 2018 · 4 comments
Open

@babel/typescript preset #43

pedroteixeira opened this issue Feb 15, 2018 · 4 comments

Comments

@pedroteixeira
Copy link

Hi, can this be used purely with babel-loader? Since with Babel 7.x the preset "@babel/typescript", ts-loader does not seem to be needed anymore, but "babel-plugin-import" seems to not support babel 7 yet.

thanks!
Pedro

@Brooooooklyn
Copy link
Collaborator

If you want use babel with TypeScript, here is an alternative which has full compatible with babel: babel-plugin-import

@zhangking
Copy link

hi, I use next.js + typescript + antd + babel-plugin-import
https://github.com/zeit/next.js/tree/canary/examples/with-typescript
but it does't work

@fatfatson
Copy link

same problem.
the latest @babel/typescript made things strange.
'legacy' ts-loader and 'normal' babel-loader both ignore this corner

@Brooooooklyn
Copy link
Collaborator

If you are using babel-loader with webpack, please use babel-plugin-import.

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

4 participants