mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
refactor(commons): switch to esbuild
This commit is contained in:
parent
1893686e66
commit
114607f762
@ -27,21 +27,31 @@
|
|||||||
"sourceRoot": "packages/commons/src",
|
"sourceRoot": "packages/commons/src",
|
||||||
"targets": {
|
"targets": {
|
||||||
"build": {
|
"build": {
|
||||||
"executor": "@nx/js:swc",
|
"executor": "@nx/esbuild:esbuild",
|
||||||
"outputs": [
|
"outputs": [
|
||||||
"{options.outputPath}"
|
"{options.outputPath}"
|
||||||
],
|
],
|
||||||
|
"defaultConfiguration": "production",
|
||||||
"options": {
|
"options": {
|
||||||
"outputPath": "packages/commons/dist",
|
|
||||||
"main": "packages/commons/src/index.ts",
|
"main": "packages/commons/src/index.ts",
|
||||||
|
"outputPath": "packages/commons/dist",
|
||||||
|
"outputFileName": "main.js",
|
||||||
"tsConfig": "packages/commons/tsconfig.lib.json",
|
"tsConfig": "packages/commons/tsconfig.lib.json",
|
||||||
"skipTypeCheck": true,
|
"platform": "node",
|
||||||
"stripLeadingPaths": true
|
"format": [
|
||||||
|
"esm"
|
||||||
|
],
|
||||||
|
"declarationRootDir": "packages/commons/src"
|
||||||
|
},
|
||||||
|
"configurations": {
|
||||||
|
"development": {
|
||||||
|
"minify": false
|
||||||
|
},
|
||||||
|
"production": {
|
||||||
|
"minify": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"@swc/helpers": "~0.5.11"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user