feat(typescript): add babel config types (#5666)

This commit is contained in:
Xin Du (Clark) 2019-05-07 11:39:59 +01:00 committed by GitHub
parent 5a051454e8
commit 9346df7f03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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",

View File

@ -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==