diff --git a/services/web/webpack.config.js b/services/web/webpack.config.js index 9a5717e4e9..a4d3f87592 100644 --- a/services/web/webpack.config.js +++ b/services/web/webpack.config.js @@ -59,6 +59,7 @@ const aceDir = getModuleDirectory('ace-builds') const pdfjsVersions = ['pdfjs-dist210', 'pdfjs-dist213'] const vendorDir = path.join(__dirname, 'frontend/js/vendor') +const librariesDir = path.resolve(__dirname, '../../libraries') module.exports = { // Defines the "entry point(s)" for the application - i.e. the file which @@ -88,10 +89,10 @@ module.exports = { rules: [ { // Pass application JS/TS files through babel-loader, compiling to ES5 - test: /\.[j|t]sx?$/, + test: /\.[jt]sx?$/, // Only compile application files (npm and vendored dependencies are in // ES5 already) - exclude: [/node_modules\/(?!react-dnd\/)/, vendorDir], + exclude: [/node_modules\/(?!react-dnd\/)/, vendorDir, librariesDir], use: [ { loader: 'babel-loader', @@ -217,7 +218,6 @@ module.exports = { `frontend/js/vendor/libs/${PackageVersions.lib('fineuploader')}` ), }, - symlinks: false, extensions: ['.js', '.jsx', '.ts', '.tsx', '.json'], fallback: { events: require.resolve('events'),