Commit a9a704e7 authored by Guy Bedford's avatar Guy Bedford Committed by Joe Haddad

devalue

parent 580c13a0
import chalk from 'next/dist/compiled/chalk'
import ciEnvironment from 'next/dist/compiled/ci-info'
import crypto from 'crypto'
import devalue from 'devalue'
import devalue from 'next/dist/compiled/devalue'
import escapeStringRegexp from 'escape-string-regexp'
import findUp from 'find-up'
import fs from 'fs'
......
import devalue from 'devalue'
import devalue from 'next/dist/compiled/devalue'
import escapeRegexp from 'escape-string-regexp'
import { join } from 'path'
import { parse } from 'querystring'
......
import devalue from 'devalue'
import devalue from 'next/dist/compiled/devalue'
import { Compiler } from 'webpack'
import { RawSource } from 'webpack-sources'
import {
......
......@@ -65,7 +65,6 @@
"conf": "5.0.0",
"css-loader": "3.3.0",
"cssnano-simple": "1.0.0",
"devalue": "2.0.1",
"escape-string-regexp": "2.0.0",
"etag": "1.8.1",
"file-loader": "4.2.0",
......@@ -191,6 +190,7 @@
"compression": "1.7.4",
"content-type": "1.0.4",
"cookie": "0.4.0",
"devalue": "2.0.1",
"dotenv": "8.2.0",
"dotenv-expand": "5.1.0",
"nanoid": "2.0.3",
......
......@@ -291,6 +291,13 @@ export async function ncc_cookie(task, opts) {
.target('dist/compiled/cookie')
}
// eslint-disable-next-line camelcase
export async function ncc_devalue(task, opts) {
await task
.source(opts.src || relative(__dirname, require.resolve('devalue')))
.ncc({ packageName: 'devalue' })
.target('dist/compiled/devalue')
}
// eslint-disable-next-line camelcase
export async function ncc_dotenv(task, opts) {
await task
.source(opts.src || relative(__dirname, require.resolve('dotenv')))
......@@ -365,6 +372,7 @@ export async function precompile(task) {
'ncc_compression',
'ncc_content_type',
'ncc_cookie',
'ncc_devalue',
'ncc_dotenv',
'ncc_dotenv_expand',
'ncc_nanoid',
......
......@@ -75,6 +75,10 @@ declare module 'next/dist/compiled/cookie' {
import m from 'cookie'
export = m
}
declare module 'next/dist/compiled/devalue' {
import m from 'devalue'
export = m
}
declare module 'next/dist/compiled/dotenv' {
import m from 'dotenv'
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