Skip to content

Commit 8114ddd

Browse files
size(core): remove dependencies to chalk and @babel/highlight (@babel/highlight replaced with build/noopBabelHighlight.mjs)
1 parent c97f0a9 commit 8114ddd

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

build/noopBabelHighlight.mjs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
export function getChalk() {
2+
3+
// see: @babel/code-frame/lib/index.js
4+
return {
5+
grey: null,
6+
red: {
7+
bold: null,
8+
}
9+
};
10+
}

build/webpack.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,10 @@ ${ pkg.name } v${ pkg.version }
186186
// not needed
187187
'consolidate': false,
188188
'@vue/compiler-ssr': false,
189-
// 'chalk': false,
189+
190+
'chalk': false,
191+
'@babel/highlight': Path.resolve(__dirname, 'noopBabelHighlight.mjs'),
192+
190193
'emojis-list': false,
191194
'json5': false,
192195
'convert-source-map': false,

0 commit comments

Comments
 (0)