js 打包分析

2022-04-24 23:54:33 +08:00
 SummerInsect

` ! function(e) { function t(c) { if (a[c]) return a[c].exports; var n = a[c] = { i: c, l: !1, exports: {} }; return e[c].call(n.exports, n, n.exports, t), n.l = !0, n.exports }

var a = {};
t.m = e, t.c = a, t.i = function(e) {
    return e
}, t.d = function(e, a, c) {
    t.o(e, a) || Object.defineProperty(e, a, {
        configurable: !1,
        enumerable: !0,
        get: c
    })
}, t.n = function(e) {
    var a = e && e.__esModule ? function() {
        return e.default
    } : function() {
        return e
    };
    return t.d(a, "a", a), a
}, t.o = function(e, t) {
    return Object.prototype.hasOwnProperty.call(e, t)
}, t.p = "/js/dist/", t(t.s = 92)

}});`

请问这是哪种方式打包的 js 文件会带的文件头

809 次点击
所在节点    问与答
1 条回复
kkocdko
2022-04-25 08:10:10 +08:00
rollup ?看配置方式吧,不确定

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/849031

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX