Update MIGRATION.md

This commit is contained in:
Michael Shilman 2020-01-08 16:19:44 +08:00 committed by GitHub
parent 0b5f2db374
commit cf2e3601b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,9 +83,9 @@ In storybook 5.3 3 new files for configuration were introduced, that replaced so
These files are now soft-deprecated, (_they still work, but over time we will promote users to migrate_): These files are now soft-deprecated, (_they still work, but over time we will promote users to migrate_):
- `config.js` has been renamed to `preview.js`. - `presets.js` has been renamed to `main.js`. `main.js` is the main point of configuration for storybook.
- `addons.js` has been renamed to `manager.js`. - `config.js` has been renamed to `preview.js`. `preview.js` configures the "preview" iframe that renders your components.
- `presets.js` has been renamed to `main.js`. - `addons.js` has been renamed to `manager.js`. `manager.js` configures Storybook's "manager" UI that wraps the preview, and also configures addons panel.
#### Using main.js #### Using main.js