@outsmartly/babel-plugin-outsmartly-react
v0.0.19
Published
Babel plugin for use with Outsmartly
Downloads
14
Keywords
Readme
@outsmartly/babel-plugin-outsmartly-react
Usage
Using Next.js or Gatsby? Use
@outsmartly/next-plugin-outsmartly
or@outsmartly/gatsby-plugin-outsmartly
instead.
Add it to your .babel.rc, babel.config.js, or similar.
{
"plugins": [
"@outsmartly/babel-plugin-outsmartly-react"
// OR WITH OPTIONS
["@outsmartly/babel-plugin-outsmartly-react", {
"analysisDir": "path/to/dir/"
}]
]
}
Using Next.js? You do not need to install this! It is automatically setup for you when using
@outsmartly/next-plugin-outsmartly
.
Options
analysisDir: string = `${process.cwd()}/.outsmartly/analysis/`
Where the plugin writes the analysis output files that will be picked up and used by the Outsmartly CLI. Note that if you change this, you also need to tell the CLI where to find them.
License
This is commerical, non-open source software. See LICENSE.