Explorar el Código

Fix metrics pages broken by Yarn 4 migration (#33190)

GitOrigin-RevId: 9bb3462248a16bfab425f6ebc884e9210d872b9c
Anna Claire Fields hace 3 meses
padre
commit
9f8e5582d5
Se han modificado 1 ficheros con 4 adiciones y 13 borrados
  1. 4 13
      services/web/webpack.config.js

+ 4 - 13
services/web/webpack.config.js

@@ -217,19 +217,7 @@ module.exports = {
           // Compiles Sass to CSS
           {
             loader: 'sass-loader',
-            options: {
-              api: 'modern',
-              sourceMap: true, // sourceMap: true is required for resolve-url-loader
-              sassOptions: {
-                silenceDeprecations: [
-                  // TODO: import can't be fixed until we switch to bootstrap 6
-                  'import',
-                  'global-builtin',
-                  'color-functions',
-                  'if-function',
-                ],
-              },
-            },
+            options: { sourceMap: true }, // sourceMap: true is required for resolve-url-loader
           },
         ],
       },
@@ -328,6 +316,9 @@ module.exports = {
         __dirname,
         './modules/writefull/frontend/js/integration/src/'
       ),
+      // Ensure all packages use the same jQuery instance (prevents duplicate
+      // copies from Yarn hoisting breaking jQuery plugins like daterangepicker)
+      jquery: require.resolve('jquery'),
     },
     // symlinks: false, // enable this while using `npm link`
     extensions: ['.js', '.jsx', '.ts', '.tsx', '.mjs', '.cjs', '.json'],