mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #10696 from overleaf/ae-babel-shared
Revert "Fix webpack reloading for shared libraries in the monorepo" GitOrigin-RevId: c78871c3d72bd784c5e87aaaaf871be6c1768918
This commit is contained in:
parent
0bb883a2c5
commit
5728ffba2c
1 changed files with 2 additions and 2 deletions
|
@ -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'),
|
||||
|
|
Loading…
Reference in a new issue