Valentin Palkovic 7453a70426 Add proper Next.js framework support
NextJS projects should work out-of-the-box when Storybook is initialized.

1. Scenario: .babelrc or project babel.config.(m)js(x) file doesn't exist

In this case Next.js >= 12 uses swc to transpile the code. In Storybook
we will still use babel to transpile the code. We use the preset `next/babel`
and configure it to make the Next.js project work with Storybook. Any SWC/Next compiler
related options are ignored

2. Scenario: .babelrc or project babel.config.(m)js(x) file exist

Storybook will use the project's babel configuration for transpiling. All options, which
are passed to the `next/babel` prest are respected.
2022-11-17 08:58:42 +01:00
..
2022-11-14 14:05:51 +01:00
2022-10-25 16:01:35 +11:00
2022-10-18 11:30:29 +02:00
2022-11-16 12:48:30 -05:00
2022-11-16 12:16:09 -05:00
2022-11-13 00:10:35 -05:00
2022-11-17 15:06:07 +08:00
2022-09-02 17:09:07 +03:00
2022-10-18 11:30:29 +02:00
2022-11-14 14:05:51 +01:00
2022-11-17 08:58:42 +01:00