Skip to content

Commit d0dab1a

Browse files
committed
📦️ move from swc to parcel for building
Removed `swc` and `@swc/core` from the project and replaced it with `parcel` for building the project. `@swc/jest` is still used for testing. Configure parcel to build the project as an ES module. Create a new tsconfig file as it was required. Take the opportunity to migrate .js script files to .mjs files.
1 parent 77db6f6 commit d0dab1a

File tree

7 files changed

+2689
-1169
lines changed

7 files changed

+2689
-1169
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@
44
# javascript dependencies
55
node_modules
66

7-
# swc output directory
7+
# build output directory
88
dist
99

1010
# test coverage generated by jest
1111
coverage
12+
13+
# cache generated by parcel
14+
.parcel-cache

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# swc output directory
1+
# build output directory
22
dist
33

44
# test coverage generated by jest

jest.config.js renamed to jest.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = {
1+
export default {
22
transform: {
33
"^.+\\.(t|j)sx?$": "@swc/jest",
44
},

0 commit comments

Comments
 (0)