From 5728ffba2cd35962a32ed630aa31a22abc83c1f5 Mon Sep 17 00:00:00 2001 From: June Kelly Date: Tue, 29 Nov 2022 09:06:44 +0000 Subject: [PATCH] Merge pull request #10696 from overleaf/ae-babel-shared Revert "Fix webpack reloading for shared libraries in the monorepo" GitOrigin-RevId: c78871c3d72bd784c5e87aaaaf871be6c1768918 --- services/web/webpack.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/webpack.config.js b/services/web/webpack.config.js index fb95131688..55e6d89a09 100644 --- a/services/web/webpack.config.js +++ b/services/web/webpack.config.js @@ -63,7 +63,6 @@ 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 @@ -96,7 +95,7 @@ module.exports = { test: /\.[jt]sx?$/, // Only compile application files (npm and vendored dependencies are in // ES5 already) - exclude: [/node_modules\/(?!react-dnd\/)/, vendorDir, librariesDir], + exclude: [/node_modules\/(?!react-dnd\/)/, vendorDir], use: [ { loader: 'babel-loader', @@ -222,6 +221,7 @@ module.exports = { `frontend/js/vendor/libs/${PackageVersions.lib('fineuploader')}` ), }, + symlinks: false, extensions: ['.js', '.jsx', '.ts', '.tsx', '.json'], fallback: { events: require.resolve('events'),