lodash.curry
This commit is contained in:
parent
0f80e127f4
commit
4adf4b3300
6 changed files with 16 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
import curry from 'lodash.curry'
|
||||
import curry from 'next/dist/compiled/lodash.curry'
|
||||
import { Configuration } from 'webpack'
|
||||
import { ConfigurationContext } from '../utils'
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import curry from 'lodash.curry'
|
||||
import curry from 'next/dist/compiled/lodash.curry'
|
||||
import path from 'path'
|
||||
import webpack, { Configuration } from 'webpack'
|
||||
import MiniCssExtractPlugin from '../../../plugins/mini-css-extract-plugin'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import curry from 'lodash.curry'
|
||||
import curry from 'next/dist/compiled/lodash.curry'
|
||||
import { Configuration, Plugin, RuleSetRule } from 'webpack'
|
||||
|
||||
export const loader = curry(function loader(
|
||||
|
|
|
@ -72,7 +72,6 @@
|
|||
"ignore-loader": "0.1.2",
|
||||
"jest-worker": "24.9.0",
|
||||
"loader-utils": "2.0.0",
|
||||
"lodash.curry": "4.1.1",
|
||||
"lru-cache": "5.1.1",
|
||||
"mini-css-extract-plugin": "0.8.0",
|
||||
"native-url": "0.2.6",
|
||||
|
@ -193,6 +192,7 @@
|
|||
"json5": "2.1.2",
|
||||
"jsonwebtoken": "8.5.1",
|
||||
"launch-editor": "2.2.1",
|
||||
"lodash.curry": "4.1.1",
|
||||
"nanoid": "2.0.3",
|
||||
"resolve": "1.11.0",
|
||||
"taskr": "1.1.0",
|
||||
|
|
|
@ -387,6 +387,13 @@ export async function ncc_launch_editor(task, opts) {
|
|||
.target('dist/compiled/launch-editor')
|
||||
}
|
||||
// eslint-disable-next-line camelcase
|
||||
export async function ncc_lodash_curry(task, opts) {
|
||||
await task
|
||||
.source(opts.src || relative(__dirname, require.resolve('lodash.curry')))
|
||||
.ncc({ packageName: 'lodash.curry' })
|
||||
.target('dist/compiled/lodash.curry')
|
||||
}
|
||||
// eslint-disable-next-line camelcase
|
||||
export async function ncc_nanoid(task, opts) {
|
||||
await task
|
||||
.source(opts.src || relative(__dirname, require.resolve('nanoid')))
|
||||
|
@ -460,6 +467,7 @@ export async function precompile(task) {
|
|||
'ncc_json5',
|
||||
'ncc_jsonwebtoken',
|
||||
'ncc_launch_editor',
|
||||
'ncc_lodash_curry',
|
||||
'ncc_nanoid',
|
||||
'ncc_resolve',
|
||||
'ncc_text_table',
|
||||
|
|
4
packages/next/types/misc.d.ts
vendored
4
packages/next/types/misc.d.ts
vendored
|
@ -128,6 +128,10 @@ declare module 'next/dist/compiled/launch-editor' {
|
|||
import m from 'launch-editor'
|
||||
export = m
|
||||
}
|
||||
declare module 'next/dist/compiled/lodash.curry' {
|
||||
import m from 'lodash.curry'
|
||||
export = m
|
||||
}
|
||||
declare module 'next/dist/compiled/nanoid/index.js' {
|
||||
function nanoid(size?: number): string
|
||||
export = nanoid
|
||||
|
|
Loading…
Reference in a new issue