diff --git a/debian/patches/0740-use-packaged-modules.patch b/debian/patches/0740-use-packaged-modules.patch index 1c2e32762b..7a4c1721db 100644 --- a/debian/patches/0740-use-packaged-modules.patch +++ b/debian/patches/0740-use-packaged-modules.patch @@ -25,7 +25,7 @@ }, module: { -@@ -166,9 +165,12 @@ +@@ -166,9 +165,13 @@ }, { test: /\.js$/, @@ -33,13 +33,14 @@ + exclude: [ path => /node_modules\/(?!tributejs)|node_modules|vendor[\\/]assets/.test(path) && !/\.vue\.js/.test(path), -+ /\bcore-js\b/, -+ /\bwebpack\/buildin\b/ ++ /\/usr\/share\/nodejs/, ++ /\/usr\/lib\/nodejs/, ++ /\/usr\/share\/javascript/ + ], loader: 'babel-loader', options: { cacheDirectory: path.join(CACHE_PATH, 'babel-loader'), -@@ -475,19 +477,6 @@ +@@ -475,19 +478,6 @@ // enable HMR only in webpack-dev-server DEV_SERVER_LIVERELOAD && new webpack.HotModuleReplacementPlugin(), @@ -59,7 +60,7 @@ new webpack.DefinePlugin({ // This one is used to define window.gon.ee and other things properly in tests: 'process.env.IS_EE': JSON.stringify(IS_EE), -@@ -513,6 +502,7 @@ +@@ -513,6 +503,7 @@ node: { fs: 'empty', // sqljs requires fs