Skip to content

Commit cbc5e39

Browse files
authored
Merge pull request #15 from github/remove-syntax-transforms
Remove syntax transformations in module output
2 parents ef9ecf2 + aed98f0 commit cbc5e39

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

.babelrc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
{
22
"env": {
33
"esm": {
4-
"presets": [
5-
["@babel/env", {"modules": false}],
6-
"@babel/flow"
7-
]
4+
"presets": ["@babel/flow"]
85
},
96
"umd": {
107
"plugins": [

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
node-version: [8.x, 10.x, 12.x]
14+
node-version: [10.x, 12.x]
1515

1616
steps:
1717
- uses: actions/checkout@v1

examples/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
</script>
2121
<!-- Uncomment to test in development -->
2222
<!--<script type="module">
23-
import checkAll from '../dist/check-all.esm.js'
23+
import checkAll from '../dist/check-all.js'
2424
checkAll(document.querySelector('[data-check-all-container]'))
2525
</script>-->
2626
</body>

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Multiple checkbox selection helper.",
44
"version": "0.2.6",
55
"main": "dist/check-all.umd.js",
6-
"module": "dist/check-all.esm.js",
6+
"module": "dist/check-all.js",
77
"types": "index.d.ts",
88
"license": "MIT",
99
"repository": "github/check-all",
@@ -16,7 +16,7 @@
1616
"lint": "github-lint",
1717
"prebuild": "npm run clean && npm run lint && mkdir dist",
1818
"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",
19-
"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",
19+
"build-esm": "BABEL_ENV=esm babel check-all.js -o dist/check-all.js && cp check-all.js.flow dist/check-all.js.flow",
2020
"build": "npm run build-umd && npm run build-esm",
2121
"pretest": "npm run build",
2222
"test": "karma start test/karma.config.js",

0 commit comments

Comments
 (0)