unbuild icon indicating copy to clipboard operation
unbuild copied to clipboard

corrupt build when inlining `jsonc-parser`

Open danielroe opened this issue 3 years ago • 0 comments

see https://github.com/nuxt/nuxt.js/issues/14416.

reproduction: https://stackblitz.com/edit/node-weknes

From: https://unpkg.com/browse/[email protected]/lib/esm/impl/edit.js

var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};

=>

var __assign = (/home/projects/node-weknes && /home/projects/node-weknes.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};

danielroe avatar Jul 25 '22 14:07 danielroe