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

Commit

Permalink
fix(docz-core): happypack plugin name
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Dec 26, 2018
1 parent 5644343 commit cbf7692
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/docz-core/src/webpack/loaders.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as path from 'path'
import HappyPack from 'happypack'
import * as happyPack from 'happypack'

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

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

config.plugin('happypack-jsx').use(HappyPack, [
config.plugin('happypack-jsx').use(happyPack, [
{
id: 'jsx',
verbose: args.debug,
Expand All @@ -103,7 +103,7 @@ export const setupHappypack = (config: Config, args: Args, babelrc: any) => {
},
])

config.plugin('happypack-mdx').use(HappyPack, [
config.plugin('happypack-mdx').use(happyPack, [
{
id: 'mdx',
verbose: args.debug,
Expand Down

0 comments on commit cbf7692

Please sign in to comment.