@mtyk/frontend
v0.1.45
Published
Shared frontend utilities functions
Downloads
69
Readme
MTYK Frontend
Resuable stuff for all React/React Native applications.
Usage
In your application configuration, add the MTYKTransform to your babel configuration similar to the following:
const MTYKTransform = require('@mtyk/frontend/babel')
module.exports = {
presets: ['next/babel'],
plugins: [MTYKTransform({ environment: 'browser' })],
}Where environment can either be "native" or "browser". This will rewrite some import declrations to make sure you get the native/browser versions of various dependencies.
