0.0.1 • Published 1 year ago

@swanide/swc-web-debug v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

@swanide/swc-web-debug

config

[
    "@swanide/swc-web-debug",
    {}
]

source:

App({
    onLaunch(options) {
        let a = options;
        console.log(a)
    },
    onShow(options) {
    },
    onHide() {
    }
});

transformed:

var _$_ = {
    "f": "DEBUG_MODULE_PATH",
    "enable": typeof Agent === 'function',
    "warn": function() {}
};
_$_.p = _$_.enable && Agent.p && Agent.p.bind(Agent) || _$_.warn;
_$_.register = _$_.enable && Agent.register && Agent.register.bind(Agent) || _$_.warn;
_$_.register({
    "path": _$_.f,
    "contextId": _$_.f,
    "stickyFlag": true,
    "fingerFlag": false,
    "debuggerLine": [],
    "stickyLine": [
        1,
        3,
        4
    ],
    "scope": {
        1: [
            1,
            "options"
        ],
        3: [
            1,
            "a"
        ],
        6: [
            1
        ],
        7: [
            1
        ]
    },
    "function": {}
}, "DEBUG_MODULE_TEMPLATE");
while(eval(_$_.p(_$_.f, 1, 1))){}
App({
    onLaunch (options) {
        while(eval(_$_.p(_$_.f, 3, 3))){}
        let a = options;
        while(eval(_$_.p(_$_.f, 4, 3))){}
        console.log(a);
    },
    onShow (options1) {},
    onHide () {}
});
0.0.1

1 year ago