fix(vite): disable babel code size warning (#3265)
This commit is contained in:
@@ -360,6 +360,7 @@ function babelTransform(
|
|||||||
sourceMaps: "inline",
|
sourceMaps: "inline",
|
||||||
presets: presets,
|
presets: presets,
|
||||||
plugins: [httpAbsolute(url)],
|
plugins: [httpAbsolute(url)],
|
||||||
|
compact: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (result !== null && result.code) {
|
if (result !== null && result.code) {
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ export function patches(): Plugin {
|
|||||||
const res = babel.transformSync(code, {
|
const res = babel.transformSync(code, {
|
||||||
filename: id,
|
filename: id,
|
||||||
babelrc: false,
|
babelrc: false,
|
||||||
|
compact: true,
|
||||||
plugins: [
|
plugins: [
|
||||||
cjsPlugin,
|
cjsPlugin,
|
||||||
removePolyfills,
|
removePolyfills,
|
||||||
|
|||||||
Reference in New Issue
Block a user