diff --git a/addons/storyshots/storyshots-core/README.md b/addons/storyshots/storyshots-core/README.md index b407cfd331e5..89a7a1d8b6cc 100644 --- a/addons/storyshots/storyshots-core/README.md +++ b/addons/storyshots/storyshots-core/README.md @@ -52,9 +52,9 @@ other tools may lack this feature. Since Storyshot is running under Jest, we need to polyfill this functionality to work with Jest. The easiest way is to integrate it to babel. -You can do this with a Babel [plugin](https://github.com/smrq/babel-plugin-require-context-hook) or [macro](https://github.com/storybooks/require-context.macro). If you're using `create-react-app` (v2 or above), you will use the macro. +You can do this with a Babel [plugin](https://github.com/smrq/babel-plugin-require-context-hook) or [macro](https://github.com/storybooks/require-context.macro). If you're using `create-react-app` (v2 or above), use the macro. -- *Plugin* +#### Option 1: Plugin First, install it: @@ -88,7 +88,7 @@ Finally, add the plugin to `.babelrc`: ``` The plugin is only added to the test environment otherwise it could replace webpack's version of it. -- *Macro* +#### Option 2: Macro First, install it: