In case you're running wretch in Rollup (e.g. with Sapper) you might be confused about warning messages in the console.
// The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten
1: var __assign = (this && this.__assign) || function () {
^
2: __assign = Object.assign || function(t) {
3: for (var s, i = 1, n = arguments.length; i < n; i++) {
You can suppress them by using configuration directive onwarn in your rollup.config.js, warning code is THIS_IS_UNDEFINED.
In case you're running
wretch
in Rollup (e.g. with Sapper) you might be confused about warning messages in the console.You can suppress them by using configuration directive onwarn in your
rollup.config.js
, warning code isTHIS_IS_UNDEFINED
.