Skip to content

Commit

Permalink
Merge pull request #1417 from vivliostyle/improve-build-script
Browse files Browse the repository at this point in the history
chore(core): replace microbundle with esbuild
  • Loading branch information
MurakamiShinyu authored Nov 13, 2024
2 parents 7553e21 + d1f9162 commit be44433
Show file tree
Hide file tree
Showing 3 changed files with 190 additions and 714 deletions.
9 changes: 4 additions & 5 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"version": "2.30.5",
"author": "Vivliostyle Foundation",
"scripts": {
"build": "microbundle --format cjs --define VIVLIOSTYLE_DEBUG=false",
"build-dev": "microbundle --no-compress --format cjs --define VIVLIOSTYLE_DEBUG=true",
"build": "tsc --emitDeclarationOnly && esbuild src/vivliostyle.ts --bundle --outfile=lib/vivliostyle.js --format=cjs --define:VIVLIOSTYLE_DEBUG=false --minify --sourcemap --target=es2018",
"build-dev": "esbuild src/vivliostyle.ts --bundle --outfile=lib/vivliostyle.js --format=cjs --define:VIVLIOSTYLE_DEBUG=true --sourcemap --target=es2018",
"clean": "shx rm -rf lib/* .cache",
"dev": "yarn build-dev --watch",
"dev": "yarn build-dev --watch=forever",
"format": "prettier --write \"{*.{js,md,json},{src,types,test,resources}/**/*.{ts,js}}\"",
"lint": "eslint src --fix --ext .ts -f codeframe",
"test": "yarn --cwd test install && yarn --cwd test test",
Expand All @@ -19,13 +19,12 @@
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.9.1",
"@typescript-eslint/parser": "^5.9.1",
"esbuild": "^0.14.11",
"esbuild": "^0.24.0",
"eslint": "^8.7.0",
"eslint-config-prettier": "^8.1.0",
"eslint-formatter-codeframe": "^7.32.1",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-prettier": "^4.0.0",
"microbundle": "^0.15.1",
"shx": "^0.3.2",
"typescript": "^5.0.4"
},
Expand Down
1 change: 1 addition & 0 deletions packages/core/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
"useDefineForClassFields": true /* Emit ECMAScript-standard-compliant class fields. */,

/* Strict Type-Checking Options */
"strict": true /* Enable all strict type-checking options. */,
Expand Down
Loading

0 comments on commit be44433

Please sign in to comment.