From 33fb3d9331f56afb7163798c3d78f2febc5f7db6 Mon Sep 17 00:00:00 2001 From: Miles Johnson Date: Sat, 14 Nov 2020 00:00:30 -0800 Subject: [PATCH] docs: Add babel config section. --- website/docs/install.mdx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/website/docs/install.mdx b/website/docs/install.mdx index 3926f2913..cff914c6c 100644 --- a/website/docs/install.mdx +++ b/website/docs/install.mdx @@ -44,3 +44,15 @@ Once installed, you can reference the `packemon` binary within a `package.json` } } ``` + +## Babel + +Packemon relies on its own internal Babel configuration for building packages, but if you want to +use the same configuration for local development and testing, update your `babel.config.js` to the +following. + +```js title="babel.config.js" +module.exports = require('packemon/babel'); +``` + +> We suggest using the configuration as is, which means no custom plugins or presets.