@hippy/rejection-tracking-polyfill

1.0.0 • Public • Published

rejection-tracking-polyfill

针对 Hippy iOS(JSC) Promise 对 unhandledRejection 异常错误的处理插件

使用

  1. npm install -D @hippy/rejection-tracking-polyfill

  2. 引入脚本

可以在打包脚本里直接引入,也可以在业务代码里引入

  • webpack 配置
// iOS webpack 配置
module.exports = {
    ...,
    entry: {
        index: ['dist/dev/index.js', '@hippy/rejection-tracking-polyfill']
    },
}
  • 业务代码配置
import { Hippy } from '@hippy/react';
import '@hippy/rejection-tracking-polyfill';

new Hippy({
    appName: 'Demo',
    entryPage: App,
}).start();

支持版本

Hippy 终端 SDK 版本: >= 2.14.1

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @hippy/rejection-tracking-polyfill

      Weekly Downloads

      21

      Version

      1.0.0

      License

      none

      Unpacked Size

      5.37 kB

      Total Files

      3

      Last publish

      Collaborators

      • raypro
      • zealotchen
      • xuqingkuang
      • zoomchan-cxj
      • ilikethese