Skip to content

Commit

Permalink
Add both esm as a build target
Browse files Browse the repository at this point in the history
  • Loading branch information
winkerVSbecks committed Jun 4, 2021
1 parent 6f03d36 commit 9a353b7
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 28,017 deletions.
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

0 comments on commit 9a353b7

Please sign in to comment.