Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Esm support #11

Merged
merged 3 commits into from
Jun 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .babelrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,16 @@ module.exports = {
"@babel/preset-typescript",
"@babel/preset-react",
],
env: {
esm: {
presets: [
[
"@babel/env",
{
modules: false,
},
],
],
},
},
};
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Simplify the creation of Storybook addons
- 🏷 Plugin metadata
- 🚢 Release management with [Auto](https://github.com/intuit/auto)
- 🧺 Boilerplate and sample code
- 🛄 ESM support

## Getting Started

Expand All @@ -18,13 +19,13 @@ Click the **Use this template** button to get started.
Clone your repository and install dependencies.

```sh
npm install
yarn
```

### Development scripts

- `npm run start` runs babel in watch mode and starts Storybook
- `npm run build` build and package your addon code
- `yarn start` runs babel in watch mode and starts Storybook
- `yarn build` build and package your addon code

## What's included?

Expand Down Expand Up @@ -95,7 +96,7 @@ Go to `Settings > Secrets`, click `New repository secret`, and add your `NPM_TOK
To create a release locally you can run the following command, otherwise the GitHub action will make the release for you.

```sh
npm run release
yarn release
```

That will:
Expand Down
Loading