fix(vite): provide global to patch webpacks defaults
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
import './viteGlobals';
|
||||
import 'vite/modulepreload-polyfill';
|
||||
import './core/trustedTypePolicies';
|
||||
import './jquery';
|
||||
|
||||
// TODO: Vite does this differently...
|
||||
// declare let __webpack_public_path__: string;
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Vite: hacky approach to making jQuery globally available
|
||||
import jQuery from 'jquery';
|
||||
Object.assign(window, { $: jQuery, jQuery });
|
||||
|
||||
window.global ||= window;
|
||||
Reference in New Issue
Block a user