CSP: Remove global this
in webpack
Also refactor how we handle global namespace objects. Fixes CODEOCEAN-DV
This commit is contained in:
@ -14,8 +14,8 @@ import * as bootstrap from 'bootstrap/dist/js/bootstrap.bundle';
|
||||
import 'chosen-js/chosen.jquery';
|
||||
import 'jstree';
|
||||
import 'underscore';
|
||||
import 'd3';
|
||||
import '@sentry/browser';
|
||||
import * as d3 from 'd3';
|
||||
import * as Sentry from '@sentry/browser';
|
||||
import 'sorttable';
|
||||
window.bootstrap = bootstrap; // Publish bootstrap in global namespace
|
||||
window._ = _; // Publish underscore's `_` in global namespace
|
||||
|
Reference in New Issue
Block a user