Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Commit cbf7692

Browse files
committed
fix(docz-core): happypack plugin name
1 parent 5644343 commit cbf7692

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/docz-core/src/webpack/loaders.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as path from 'path'
2-
import HappyPack from 'happypack'
2+
import * as happyPack from 'happypack'
33

44
import Config from 'webpack-chain'
55
import { Config as Args } from '../commands/args'
@@ -67,7 +67,7 @@ export const mdx = (config: Config, args: Args) => {
6767
}
6868

6969
export const setupHappypack = (config: Config, args: Args, babelrc: any) => {
70-
const happyThreadPool = HappyPack.ThreadPool({ size: 6 })
70+
const happyThreadPool = happyPack.ThreadPool({ size: 6 })
7171
const loaders = [
7272
!args.debug && {
7373
loader: require.resolve('cache-loader'),
@@ -94,7 +94,7 @@ export const setupHappypack = (config: Config, args: Args, babelrc: any) => {
9494
},
9595
]
9696

97-
config.plugin('happypack-jsx').use(HappyPack, [
97+
config.plugin('happypack-jsx').use(happyPack, [
9898
{
9999
id: 'jsx',
100100
verbose: args.debug,
@@ -103,7 +103,7 @@ export const setupHappypack = (config: Config, args: Args, babelrc: any) => {
103103
},
104104
])
105105

106-
config.plugin('happypack-mdx').use(HappyPack, [
106+
config.plugin('happypack-mdx').use(happyPack, [
107107
{
108108
id: 'mdx',
109109
verbose: args.debug,

0 commit comments

Comments
 (0)