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

Remove syntax transformations in module output #15

Merged
merged 2 commits into from
Apr 10, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
5 changes: 1 addition & 4 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{
"env": {
"esm": {
"presets": [
["@babel/env", {"modules": false}],
"@babel/flow"
]
"presets": ["@babel/flow"]
},
"umd": {
"plugins": [
Expand Down
2 changes: 1 addition & 1 deletion examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</script>
<!-- Uncomment to test in development -->
<!--<script type="module">
import checkAll from '../dist/check-all.esm.js'
import checkAll from '../dist/check-all.js'
checkAll(document.querySelector('[data-check-all-container]'))
</script>-->
</body>
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Multiple checkbox selection helper.",
"version": "0.2.6",
"main": "dist/check-all.umd.js",
"module": "dist/check-all.esm.js",
"module": "dist/check-all.js",
"types": "index.d.ts",
"license": "MIT",
"repository": "github/check-all",
Expand All @@ -16,7 +16,7 @@
"lint": "github-lint",
"prebuild": "npm run clean && npm run lint && mkdir dist",
"build-umd": "BABEL_ENV=umd babel check-all.js -o dist/check-all.umd.js && cp check-all.js.flow dist/check-all.umd.js.flow",
"build-esm": "BABEL_ENV=esm babel check-all.js -o dist/check-all.esm.js && cp check-all.js.flow dist/check-all.esm.js.flow",
"build-esm": "BABEL_ENV=esm babel check-all.js -o dist/check-all.js && cp check-all.js.flow dist/check-all.js.flow",
"build": "npm run build-umd && npm run build-esm",
"pretest": "npm run build",
"test": "karma start test/karma.config.js",
Expand Down