V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
SummerInsect
V2EX  ›  问与答

js 打包分析

  •  
  •   SummerInsect · 2022-04-24 23:54:33 +08:00 · 796 次点击
    这是一个创建于 732 天前的主题,其中的信息可能已经有所发展或是发生改变。

    ` ! 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 文件会带的文件头

    1 条回复    2022-04-25 08:10:10 +08:00
    kkocdko
        1
    kkocdko  
       2022-04-25 08:10:10 +08:00 via Android
    rollup ?看配置方式吧,不确定
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4824 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 01:12 · PVG 09:12 · LAX 18:12 · JFK 21:12
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.