0.0.1 • Published 4 years ago

@effector/trail v0.0.1

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

trail

setup

  1. Install @effector/trail and babel-plugin-module-resolver which will replace imports from effector to trail/runtime
npm install -D @effector/trail babel-plugin-module-resolver
  1. Add plugins to babel config
{
  "plugins": [
    [
      "effector/babel-plugin",
      {
        "addLoc": true
      }
    ],
    [
      "babel-plugin-module-resolver",
      {
        "alias": {
          "effector": "@effector/trail/runtime"
        }
      }
    ]
  ]
}

usage

  1. Run application in browser
  2. Open console

If everything is ok, then you should see in logs:

trail runtime active. will print results in 3s

And then results will appear