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

Commit cede436

Browse files
committed
fix(docz-core): add cache just for non-debug
1 parent be0855f commit cede436

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const js = (config: Config, args: Args, babelrc: any) => {
2828
.end()
2929
.exclude.add(/node_modules/)
3030
.end()
31-
.when(args.debug, addCacheLoader)
31+
.when(!args.debug, addCacheLoader)
3232
.use('babel-loader')
3333
.loader(require.resolve('babel-loader'))
3434
.options(babelrc)
@@ -47,7 +47,7 @@ export const mdx = (config: Config, args: Args, babelrc: any) => {
4747
.end()
4848
.exclude.add(/node_modules/)
4949
.end()
50-
.when(args.debug, addCacheLoader)
50+
.when(!args.debug, addCacheLoader)
5151
.use('babel-loader')
5252
.loader(require.resolve('babel-loader'))
5353
.options(babelrc)

0 commit comments

Comments
 (0)