Sfoglia il codice sorgente

wip jquery not found fix

Steven Fukase 4 anni fa
parent
commit
28c06bd6b7
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      packages/app/config/webpack.common.js

+ 2 - 2
packages/app/config/webpack.common.js

@@ -132,8 +132,8 @@ module.exports = (options) => {
       }),
 
       new webpack.ProvidePlugin({ // refs externals
-        jQuery: 'jquery',
-        $: 'jquery',
+        $: require.resolve('jquery'),
+        jQuery: require.resolve('jquery'),
       }),
 
     ]),