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

feat(treeshaking): Update package to output es6 module, to allow for treeshaking #410

Merged
merged 1 commit into from
Jun 29, 2022
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
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"
]
}
}
}