Skip to content

Commit afeb5cd

Browse files
authored
chore: upgrade babel and add babel compilation to CI (#54)
1 parent a7a89d5 commit afeb5cd

File tree

4 files changed

+70
-575
lines changed

4 files changed

+70
-575
lines changed

.github/workflows/nodejs.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,16 @@ jobs:
1414
node-version-matrix: '[24]'
1515
disable-test-package: true
1616
upload-coverage: false
17+
babel:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v6
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v6
24+
with:
25+
node-version-file: package.json
26+
- name: Install dependencies
27+
run: npm ci
28+
- name: Run babel on all files
29+
run: npm run babel

babel.config.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export default {
2+
ignore: ['node_modules', 'build'],
3+
presets: ['@babel/preset-env'],
4+
plugins: [
5+
'@babel/plugin-transform-destructuring',
6+
'@zakodium/babel-plugin-transform-modules-amd',
7+
],
8+
};

0 commit comments

Comments
 (0)