File tree 3 files changed +1
-8
lines changed
3 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ module.exports.terserOptions = (latestBuild) => ({
52
52
53
53
module . exports . babelOptions = ( { latestBuild } ) => ( {
54
54
babelrc : false ,
55
+ compact : false ,
55
56
presets : [
56
57
! latestBuild && [
57
58
"@babel/preset-env" ,
@@ -79,12 +80,6 @@ module.exports.babelOptions = ({ latestBuild }) => ({
79
80
] . filter ( Boolean ) ,
80
81
} ) ;
81
82
82
- // Are already ES5, cause warnings when babelified.
83
- module . exports . babelExclude = ( ) => [
84
- require . resolve ( "@mdi/js/mdi.js" ) ,
85
- require . resolve ( "hls.js" ) ,
86
- ] ;
87
-
88
83
const outputPath = ( outputRoot , latestBuild ) =>
89
84
path . resolve ( outputRoot , latestBuild ? "frontend_latest" : "frontend_es5" ) ;
90
85
Original file line number Diff line number Diff line change @@ -57,7 +57,6 @@ const createRollupConfig = ({
57
57
babel ( {
58
58
...bundle . babelOptions ( { latestBuild } ) ,
59
59
extensions,
60
- exclude : bundle . babelExclude ( ) ,
61
60
babelHelpers : isWDS ? "inline" : "bundled" ,
62
61
} ) ,
63
62
string ( {
Original file line number Diff line number Diff line change @@ -47,7 +47,6 @@ const createWebpackConfig = ({
47
47
rules : [
48
48
{
49
49
test : / \. m ? j s $ | \. t s $ / ,
50
- exclude : bundle . babelExclude ( ) ,
51
50
use : {
52
51
loader : "babel-loader" ,
53
52
options : bundle . babelOptions ( { latestBuild } ) ,
You can’t perform that action at this time.
0 commit comments