Commit 7ea2ce8c authored by Guy Bedford's avatar Guy Bedford Committed by Joe Haddad

conf

parent 202fcbff
...@@ -62,7 +62,6 @@ ...@@ -62,7 +62,6 @@
"@next/polyfill-nomodule": "9.3.4-canary.0", "@next/polyfill-nomodule": "9.3.4-canary.0",
"autodll-webpack-plugin": "0.4.2", "autodll-webpack-plugin": "0.4.2",
"cache-loader": "4.1.0", "cache-loader": "4.1.0",
"conf": "5.0.0",
"css-loader": "3.3.0", "css-loader": "3.3.0",
"cssnano-simple": "1.0.0", "cssnano-simple": "1.0.0",
"file-loader": "4.2.0", "file-loader": "4.2.0",
...@@ -167,6 +166,7 @@ ...@@ -167,6 +166,7 @@
"chalk": "2.4.2", "chalk": "2.4.2",
"ci-info": "2.0.0", "ci-info": "2.0.0",
"compression": "1.7.4", "compression": "1.7.4",
"conf": "5.0.0",
"content-type": "1.0.4", "content-type": "1.0.4",
"cookie": "0.4.0", "cookie": "0.4.0",
"devalue": "2.0.1", "devalue": "2.0.1",
......
...@@ -334,6 +334,13 @@ export async function ncc_compression(task, opts) { ...@@ -334,6 +334,13 @@ export async function ncc_compression(task, opts) {
.target('dist/compiled/compression') .target('dist/compiled/compression')
} }
// eslint-disable-next-line camelcase // eslint-disable-next-line camelcase
export async function ncc_conf(task, opts) {
await task
.source(opts.src || relative(__dirname, require.resolve('conf')))
.ncc({ packageName: 'conf' })
.target('dist/compiled/conf')
}
// eslint-disable-next-line camelcase
export async function ncc_content_type(task, opts) { export async function ncc_content_type(task, opts) {
await task await task
.source(opts.src || relative(__dirname, require.resolve('content-type'))) .source(opts.src || relative(__dirname, require.resolve('content-type')))
...@@ -583,6 +590,7 @@ export async function precompile(task) { ...@@ -583,6 +590,7 @@ export async function precompile(task) {
'ncc_chalk', 'ncc_chalk',
'ncc_ci_info', 'ncc_ci_info',
'ncc_compression', 'ncc_compression',
'ncc_conf',
'ncc_content_type', 'ncc_content_type',
'ncc_cookie', 'ncc_cookie',
'ncc_devalue', 'ncc_devalue',
......
import chalk from 'next/dist/compiled/chalk' import chalk from 'next/dist/compiled/chalk'
import Conf from 'conf' import Conf from 'next/dist/compiled/conf'
import { BinaryLike, createHash, randomBytes } from 'crypto' import { BinaryLike, createHash, randomBytes } from 'crypto'
import isDockerFunction from 'next/dist/compiled/is-docker' import isDockerFunction from 'next/dist/compiled/is-docker'
import path from 'path' import path from 'path'
......
...@@ -67,6 +67,10 @@ declare module 'next/dist/compiled/compression' { ...@@ -67,6 +67,10 @@ declare module 'next/dist/compiled/compression' {
import m from 'compression' import m from 'compression'
export = m export = m
} }
declare module 'next/dist/compiled/conf' {
import m from 'conf'
export = m
}
declare module 'next/dist/compiled/content-type' { declare module 'next/dist/compiled/content-type' {
import m from 'content-type' import m from 'content-type'
export = m export = m
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment