Skip to content

Commit e5ea6a5

Browse files
authored
build esm module and update packages.json accordingly (#7)
1 parent f3c6455 commit e5ea6a5

5 files changed

Lines changed: 525 additions & 74 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ tmp
1313
# build
1414
dist
1515
es
16+
esm
1617
lib
18+
*.tgz

CHANGES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented here. The format is based
44
on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project
55
adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## Unreleased
8+
9+
### Added
10+
11+
- `esm` support (build `esm` module and add id as `module` in `package.json`)
12+
713
## 2019/04/06 1.0.0
814

915
### Added

babel.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ if (environment === 'es') {
1414
[
1515
'@babel/preset-env',
1616
{
17-
// note: we do not build "esm" (compared with material-ui example)
18-
modules: ['umd'].includes(environment) ? false : 'commonjs',
17+
modules: ['esm', 'umd'].includes(environment) ? false : 'commonjs',
1918
},
2019
],
2120
]

0 commit comments

Comments
 (0)