mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-17 06:01:34 +00:00
feat(typescript): add babel config types (#5666)
This commit is contained in:
parent
5a051454e8
commit
9346df7f03
3
packages/config/types/build.d.ts
vendored
3
packages/config/types/build.d.ts
vendored
@ -8,6 +8,7 @@ import {
|
|||||||
Options as WebpackOptions,
|
Options as WebpackOptions,
|
||||||
Plugin as WebpackPlugin
|
Plugin as WebpackPlugin
|
||||||
} from 'webpack'
|
} from 'webpack'
|
||||||
|
import { TransformOptions } from '@babel/core'
|
||||||
import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer'
|
import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer'
|
||||||
import { Options as WebpackDevMiddlewareOptions } from 'webpack-dev-middleware'
|
import { Options as WebpackDevMiddlewareOptions } from 'webpack-dev-middleware'
|
||||||
import { Options as WebpackHotMiddlewareOptions } from 'webpack-hot-middleware'
|
import { Options as WebpackHotMiddlewareOptions } from 'webpack-hot-middleware'
|
||||||
@ -19,7 +20,7 @@ type NuxtConfigurationLoaders = any // TBD
|
|||||||
|
|
||||||
export interface NuxtConfigurationBuild {
|
export interface NuxtConfigurationBuild {
|
||||||
analyze?: BundleAnalyzerPlugin.Options | boolean
|
analyze?: BundleAnalyzerPlugin.Options | boolean
|
||||||
babel?: any // TBD
|
babel?: TransformOptions
|
||||||
cache?: boolean
|
cache?: boolean
|
||||||
crossorigin?: string
|
crossorigin?: string
|
||||||
cssSourceMap?: boolean
|
cssSourceMap?: boolean
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
],
|
],
|
||||||
"main": "dist/typescript.js",
|
"main": "dist/typescript.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@types/babel__core": "^7.1.1",
|
||||||
"@types/chokidar": "^2.1.3",
|
"@types/chokidar": "^2.1.3",
|
||||||
"@types/compression": "^0.0.36",
|
"@types/compression": "^0.0.36",
|
||||||
"@types/etag": "^1.8.0",
|
"@types/etag": "^1.8.0",
|
||||||
|
@ -1578,7 +1578,7 @@
|
|||||||
resolved "https://registry.npmjs.org/@types/anymatch/-/anymatch-1.3.1.tgz#336badc1beecb9dacc38bea2cf32adf627a8421a"
|
resolved "https://registry.npmjs.org/@types/anymatch/-/anymatch-1.3.1.tgz#336badc1beecb9dacc38bea2cf32adf627a8421a"
|
||||||
integrity sha512-/+CRPXpBDpo2RK9C68N3b2cOvO0Cf5B9aPijHsoDQTHivnGSObdOF2BRQOYjojWTDy6nQvMjmqRXIxH55VjxxA==
|
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"
|
version "7.1.1"
|
||||||
resolved "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.1.1.tgz#ce9a9e5d92b7031421e1d0d74ae59f572ba48be6"
|
resolved "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.1.1.tgz#ce9a9e5d92b7031421e1d0d74ae59f572ba48be6"
|
||||||
integrity sha512-+hjBtgcFPYyCTo0A15+nxrCVJL7aC6Acg87TXd5OW3QhHswdrOLoles+ldL2Uk8q++7yIfl4tURtztccdeeyOw==
|
integrity sha512-+hjBtgcFPYyCTo0A15+nxrCVJL7aC6Acg87TXd5OW3QhHswdrOLoles+ldL2Uk8q++7yIfl4tURtztccdeeyOw==
|
||||||
|
Loading…
Reference in New Issue
Block a user