SummerInsect
V2EX  ›  问与答

js 打包分析

  •  
  •   SummerInsect · Apr 24, 2022 · 1485 views
    This topic created in 1485 days ago, the information mentioned may be changed or developed.

    ` ! 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 replies    2022-04-25 08:10:10 +08:00
    kkocdko
        1
    kkocdko  
       Apr 25, 2022 via Android
    rollup ?看配置方式吧,不确定
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1403 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 17:11 · PVG 01:11 · LAX 10:11 · JFK 13:11
    ♥ Do have faith in what you're doing.