I am having an app using d3.js, when I compile the code using rollup, I got this error in browser,
Uncaught TypeError: Cannot read property 'document' of undefined
It is something like this from d3.js:
!function() {
var d3 = {
version: "3.5.17"
};
var d3_arraySlice = [].slice, d3_array = function(list) {
return d3_arraySlice.call(list);
};
var d3_document = this.document;
I googled and seemed it is something related to: "useStrict"
But how can I disable it in tsconfig or rollup procedure?
Thanks