diff --git a/packages/config/types/build.d.ts b/packages/config/types/build.d.ts index 43df12e941..db05940209 100644 --- a/packages/config/types/build.d.ts +++ b/packages/config/types/build.d.ts @@ -8,6 +8,7 @@ import { Options as WebpackOptions, Plugin as WebpackPlugin } from 'webpack' +import { TransformOptions } from '@babel/core' import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer' import { Options as WebpackDevMiddlewareOptions } from 'webpack-dev-middleware' import { Options as WebpackHotMiddlewareOptions } from 'webpack-hot-middleware' @@ -19,7 +20,7 @@ type NuxtConfigurationLoaders = any // TBD export interface NuxtConfigurationBuild { analyze?: BundleAnalyzerPlugin.Options | boolean - babel?: any // TBD + babel?: TransformOptions cache?: boolean crossorigin?: string cssSourceMap?: boolean diff --git a/packages/typescript/package.json b/packages/typescript/package.json index e4f28b3ca9..5706475fe2 100644 --- a/packages/typescript/package.json +++ b/packages/typescript/package.json @@ -8,6 +8,7 @@ ], "main": "dist/typescript.js", "dependencies": { + "@types/babel__core": "^7.1.1", "@types/chokidar": "^2.1.3", "@types/compression": "^0.0.36", "@types/etag": "^1.8.0", diff --git a/yarn.lock b/yarn.lock index 30b8069c1e..d822c43f78 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1578,7 +1578,7 @@ resolved "https://registry.npmjs.org/@types/anymatch/-/anymatch-1.3.1.tgz#336badc1beecb9dacc38bea2cf32adf627a8421a" integrity sha512-/+CRPXpBDpo2RK9C68N3b2cOvO0Cf5B9aPijHsoDQTHivnGSObdOF2BRQOYjojWTDy6nQvMjmqRXIxH55VjxxA== -"@types/babel__core@^7.1.0": +"@types/babel__core@^7.1.0", "@types/babel__core@^7.1.1": version "7.1.1" resolved "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.1.1.tgz#ce9a9e5d92b7031421e1d0d74ae59f572ba48be6" integrity sha512-+hjBtgcFPYyCTo0A15+nxrCVJL7aC6Acg87TXd5OW3QhHswdrOLoles+ldL2Uk8q++7yIfl4tURtztccdeeyOw==