ts-plugin / ts-import-plugin

babel-import-plugin TypeScript Implement
MIT License
610 stars 36 forks source link

@babel/typescript preset #43

Open pedroteixeira opened 6 years ago

pedroteixeira commented 6 years ago

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 commented 6 years ago

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

zhangking commented 6 years ago

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 commented 5 years ago

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

Brooooooklyn commented 5 years ago

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