Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
added babel
Browse files Browse the repository at this point in the history
  • Loading branch information
Saturn226 committed Nov 28, 2023
1 parent b278d1c commit 86a8ea5
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 217 deletions.
17 changes: 13 additions & 4 deletions bin/build.mjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
#!/usr/bin/env node
import * as esbuild from 'esbuild'
import babel from 'esbuild-plugin-babel'


await esbuild.build({
entryPoints: ['src/main.js'],
bundle: true,
outfile: 'dist/main.js',
platform: 'node',
packages: 'external'
})


packages: 'external',
minify: true,
loader: {
'.js': 'jsx',
},
plugins: [
babel({
presets: ['@babel/preset-env'],
}),
],
})
219 changes: 7 additions & 212 deletions dist/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
},
"devDependencies": {
"esbuild": "0.19.5",
"esbuild-plugin-babel": "^0.2.3",
"eslint": "^8.52.0",
"eslint-config-prettier": "^9.0.0",
"eslint-config-standard": "^17.1.0",
Expand All @@ -26,7 +27,6 @@
"eslint-plugin-promise": "^6.1.1",
"jest": "^29.7.0",
"prettier": "3.0.3"

},
"description": ""
}

0 comments on commit 86a8ea5

Please sign in to comment.