Skip to content

Commit

Permalink
feat(treeshaking): Update package to output es6 module, to allow for …
Browse files Browse the repository at this point in the history
…treeshaking (#410)
  • Loading branch information
noisecapella authored Jun 29, 2022
1 parent 67d71cf commit b984823
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ jobs:
- name: Compile
run: npm run compile-prod

- name: Verify es5
run: npm run is-es5

- name: Run Coverage
uses: codecov/codecov-action@v2

Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ jobs:
- name: Create Build
run: npm run compile-prod

- name: Verify es5
run: npm run is-es5

- name: Run Coverage
uses: codecov/codecov-action@v2

Expand Down
14 changes: 11 additions & 3 deletions babel.config.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
{
"presets": [
"@babel/preset-env",
[
"@babel/preset-env",
{
"modules": false
}
],
"@babel/preset-react"
],
"env": {
"production": {
"presets": ["minify"]
"test": {
"presets": [
"@babel/preset-env",
"@babel/preset-react"
]
}
}
}

0 comments on commit b984823

Please sign in to comment.