提交 4adf4b33 编写于 作者: G Guy Bedford 提交者: Joe Haddad

lodash.curry

上级 0f80e127
import curry from 'lodash.curry'
import curry from 'next/dist/compiled/lodash.curry'
import { Configuration } from 'webpack'
import { ConfigurationContext } from '../utils'
......
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'
......
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',
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册