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