@swanide/swc-web-debug

0.0.1 • Public • Published

@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 () {}
});

Readme

Keywords

Package Sidebar

Install

npm i @swanide/swc-web-debug

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

956 kB

Total Files

3

Last publish

Collaborators

  • liyang_npm
  • xhong
  • andrew703
  • maopy
  • kekee000