-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
Description
# RollUp
Rollup modifies the Code resulting into potential breaks for jspdf.
jspdf.js (2172:84) The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten
node_modules/cf-blob.js/Blob.js (211:84) The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten
node_modules/cf-blob.js/Blob.js (211:100) The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten
node_modules/file-saver/FileSaver.js (176:4) The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten
libs/deflate.js (2056:3) The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten
libs/png_support/png.js (469:46) The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten
libs/polyfill.js (196:85) The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten
The following options have been renamed — please update your config: moduleName -> name
E.g. in Blob.js
}(typeof self !== "undefined" && self || typeof window !== "undefined" && window || this.content || this));
https://github.com/eligrey/Blob.js/blob/master/Blob.js
Will be changed to
}(typeof self !== "undefined" && self || typeof window !== "undefined" && window || undefined.content || undefined));
obviously results into breaks in nodejs, wenn undefined.content is tried to be solved, which results in an error.
Various calls of window-Object in jspdf should be removed or made compatibly with node.