Skip to content

Commit

Permalink
chore: use esbuild for transpiing instead of babel
Browse files Browse the repository at this point in the history
  • Loading branch information
oze4 committed Jul 27, 2021
1 parent d9c5e59 commit e838342
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion esbuild.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const fs = require('fs');
const { log } = console;
const { stdout, stderr, exit } = process;

const BUILD_DIR = 'dist_esbuild'; // relative to root of project (no trailing slash)
const BUILD_DIR = 'dist'; // relative to root of project (no trailing slash)

stdout.write(yellow(`-Cleaning build artifacts from : '${BUILD_DIR}' `));

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"scripts": {
"start": "./node_modules/.bin/webpack serve --config ./__tests__/demo/webpack.config.js --mode development --progress",
"build:esbuild": "node esbuild.config.js",
"build": "npm run build:root",
"build": "npm run build:esbuild",
"build:root": "./node_modules/.bin/babel src -d dist",
"lint": "npm run eslint && npm run tsc",
"eslint": "./node_modules/.bin/eslint src/** -c ./.eslintrc --ignore-path ./.eslintignore",
Expand Down

0 comments on commit e838342

Please sign in to comment.