diff --git a/services/web/babel.config.json b/services/web/babel.config.json index 75c21e2cb2..e6e36f7f9f 100644 --- a/services/web/babel.config.json +++ b/services/web/babel.config.json @@ -1,4 +1,5 @@ { + "compact": false, "presets": [ [ "@babel/env", diff --git a/services/web/webpack.config.js b/services/web/webpack.config.js index 7cadbf5b9a..621c892c97 100644 --- a/services/web/webpack.config.js +++ b/services/web/webpack.config.js @@ -125,7 +125,10 @@ module.exports = { test: /\.([jt]sx?|[cm]js)$/, // Only compile application files and specific dependencies // (other npm and vendored dependencies must be in ES5 already) - exclude: [/node_modules\/(?!(react-dnd|chart\.js|@uppy)\/)/, vendorDir], + exclude: [ + /node_modules\/(?!(react-dnd|chart\.js|@uppy|pdfjs-dist401)\/)/, + vendorDir, + ], use: [ { loader: 'babel-loader',