fix(v2): add @babel/preset-typescript to babel-loader (#2310)

This commit is contained in:
Robert 2020-02-23 11:22:24 +01:00 committed by GitHub
parent b25eb5dd36
commit e54ede5284
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -120,6 +120,7 @@ export function getBabelLoader(isServer: boolean, babelOptions?: {}): Loader {
},
],
'@babel/react',
'@babel/preset-typescript',
],
plugins: [
// Polyfills the runtime needed for async/await, generators, and friends