Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
206 commits
Select commit Hold shift + click to select a range
4e18b5d
feat(transform): add resolve options for `TransformEntry`
zsilbi May 27, 2025
d8d102e
feat(transform): use default resolve options
zsilbi May 28, 2025
0a23c32
feat: allow passing complete exsolve options
zsilbi May 28, 2025
e208921
update resolve options
zsilbi May 28, 2025
23e8e41
feat(tranform): extendable transformers
zsilbi May 28, 2025
2be457d
feat(transformer): jsx/tsx support
zsilbi May 28, 2025
82b23a1
docs: update readme
zsilbi May 28, 2025
b116066
fix: types
zsilbi May 28, 2025
8e47231
fix: oxc transform config
zsilbi May 28, 2025
0843af7
provided transformers have higher priority
zsilbi May 28, 2025
d2ef3f4
chore: seperate tsconfig for test (w/o isolatedDeclarations)
zsilbi May 28, 2025
95adce3
test: reogranize fixtures
zsilbi May 28, 2025
7d48082
chore: update tsconfig for tests
zsilbi May 28, 2025
4e1c336
chore: install dependencies for vue transformer
zsilbi May 29, 2025
574b782
fix: oxc non-transform output
zsilbi May 29, 2025
253cf48
feat: use vue-sfc-transformer/mkdist as vue transformer
zsilbi May 29, 2025
c57bad7
refactor: improve readability
zsilbi May 29, 2025
a87d76c
chore: apply automated updates
autofix-ci[bot] May 29, 2025
a6b2383
fix: js extensions
zsilbi May 29, 2025
fff82f4
chore: clarify types
zsilbi May 29, 2025
6afcd76
refactor: move transformers dir, update types and context
zsilbi May 29, 2025
dee38f6
chore: add /transformers subpath export
zsilbi May 29, 2025
49e8afe
refactor: remove generic options
zsilbi May 29, 2025
c56c666
chore: enable "verbatimModuleSyntax" in tsconfig
zsilbi May 29, 2025
1bc38cf
fix: type-only imports
zsilbi May 29, 2025
340a6cd
docs: update readme with transformers
zsilbi May 29, 2025
681c695
docs: correct examples
zsilbi May 29, 2025
fcbadcb
fix: remove unused config type
zsilbi May 29, 2025
f288b85
refactor: improved mkdist compatibilty
zsilbi May 29, 2025
82ff472
chore: rename variable
zsilbi May 29, 2025
afd57c5
chore: update error message
zsilbi May 29, 2025
5c286f1
chore: fix typo in comment
zsilbi May 29, 2025
df23aa3
fix: pass mkdist options to loader context
zsilbi May 29, 2025
cf2014e
chore: update warning message
zsilbi May 29, 2025
a13593d
chore: update warning message
zsilbi May 29, 2025
04edaf9
fix: remove unnecessary async
zsilbi May 29, 2025
ccf3ab7
fix: remove unecessary context merge
zsilbi May 29, 2025
bdc8809
fix: pass genereate boolean more accurately
zsilbi May 29, 2025
febac1b
docs: update readme
zsilbi May 29, 2025
6e3750d
docs: update readme
zsilbi May 29, 2025
8d82ad6
minor refactors
pi0 May 29, 2025
a1e38ec
simplify tests
pi0 May 29, 2025
5557280
fix: type import
zsilbi May 29, 2025
cdb72e1
fix: mkdist conversion
zsilbi May 29, 2025
75f4ac4
fix: transformer type exports
zsilbi May 29, 2025
e4c72e4
refactor: extract minifer from oxc transformer
zsilbi May 29, 2025
33f2003
fix: remove redundant extension property
zsilbi May 29, 2025
9728cdb
fix: unset skip property in minified output
zsilbi May 29, 2025
6467454
chore: disable verbatimModuleSyntax for test files
zsilbi May 29, 2025
30f8af7
test: add test files for source maps
zsilbi May 29, 2025
487e4a5
refactor: oxc transformer
zsilbi May 30, 2025
9bc12d0
refactor: oxc transformer
zsilbi May 30, 2025
17c554c
chore: apply automated updates
autofix-ci[bot] May 30, 2025
9358c91
fix: correct type definitions
zsilbi May 30, 2025
038bed7
test: monitor dist output snapshot
zsilbi May 30, 2025
b9e22cb
fix: source map paths
zsilbi May 30, 2025
bbe1065
update mkdist compat
zsilbi May 30, 2025
bcfe69f
fix: oxc transformer skip declaration files
zsilbi May 30, 2025
e90876e
fix: oxc use correct target extensions, support .mts
zsilbi May 30, 2025
fc965be
test: update output tests
zsilbi May 30, 2025
f155368
fix: declaration check regex
zsilbi May 30, 2025
37e49f3
chore: apply automated updates
autofix-ci[bot] May 30, 2025
1c93c3b
fix: enable jsx type declarations
zsilbi May 30, 2025
69e89b6
fix: don't merge default transformers with config
zsilbi May 30, 2025
f0f2296
docs: add todo
zsilbi May 30, 2025
af4cb47
fix: dont rename js
zsilbi May 30, 2025
30367c6
fix: vue transformer caching
zsilbi May 30, 2025
9d98c95
refactor: simplify file types
zsilbi Jun 2, 2025
83c8ff5
Merge branch 'main'
zsilbi Jun 2, 2025
d899b5d
feat: declarations generation
zsilbi May 30, 2025
c86a0c9
test: update snapshots
zsilbi May 30, 2025
fce3b5e
docs: remove notice
zsilbi May 30, 2025
3ab243c
test: update snapshots
zsilbi May 30, 2025
af1237b
chore: update deps
zsilbi May 30, 2025
f712b5c
chore: remove external from config
zsilbi May 30, 2025
15e8066
test: update snapshot
zsilbi May 30, 2025
0d7052f
test: vue transformer
zsilbi May 30, 2025
5c5c535
test: increase timeout
zsilbi Jun 2, 2025
66e7c96
test: update timeout option
zsilbi Jun 2, 2025
8f24662
feat: drop legacy vue-tsc support
zsilbi Jun 2, 2025
f4e692b
feat: declaration options
zsilbi Jun 2, 2025
46d75c9
fix: force isolatedDeclarations for vue-tsc
zsilbi Jun 2, 2025
a47f5d8
feat: postcss transformer
zsilbi Jun 2, 2025
b833589
feat: sass transformer
zsilbi Jun 2, 2025
5865f42
test: vue scss
zsilbi Jun 2, 2025
03ee5ec
docs: add description for sass transformer
zsilbi Jun 2, 2025
bd0dfcc
fix: update `TransformerName` with the new transformers
zsilbi Jun 2, 2025
438049a
fix: simplify extensions
zsilbi Jun 2, 2025
a25edc0
fix: add decl. type to declaration files
zsilbi Jun 2, 2025
f836417
test: dts only custom transformer
zsilbi Jun 2, 2025
0cb26ba
test: update snapshots
zsilbi Jun 2, 2025
acc09f2
test: update timeout
zsilbi Jun 2, 2025
31fe976
fix: dts output for .d.mts extensions
zsilbi Jun 2, 2025
0185f6d
test: dts dir import
zsilbi Jun 2, 2025
275d354
test: dts dynamic imports
zsilbi Jun 2, 2025
6f5fcec
docs: update readme
zsilbi Jun 2, 2025
fe662ae
chore: apply automated updates
autofix-ci[bot] Jun 2, 2025
c939911
docs: update readme
zsilbi Jun 2, 2025
c364dcc
feat: restore warning for missing `vue-tsc` dep.
zsilbi Jun 2, 2025
314699d
refactor: shebang check
zsilbi Jun 2, 2025
109490a
fix: set unchanged files raw
zsilbi Jun 3, 2025
660e3cc
feat: stream copy raw files with shebang check
zsilbi Jun 3, 2025
9ff93fa
refactor: remove unnecessary array check and prop
zsilbi Jun 3, 2025
ea9afe6
chore: replace node:path with pathe
zsilbi Jun 3, 2025
88bf16a
refactor: file copy with shebang check
zsilbi Jun 3, 2025
0808347
fix: improve raw files handling
zsilbi Jun 3, 2025
93cfe3d
refactor: simplify file types
zsilbi Jun 3, 2025
c597e0c
fix: file types
zsilbi Jun 3, 2025
da9f4aa
chore: revert tsconfig split
zsilbi Jun 3, 2025
1223303
chore: turn verbatimModuleSyntax back on
zsilbi Jun 3, 2025
90e43d6
fix: remove duplicate console.log for dts error check
zsilbi Jun 3, 2025
83550c4
feat: combined (minifed -> ts) source maps
zsilbi Jun 5, 2025
4d96dc2
refactor: split oxc transformer
zsilbi Jun 5, 2025
58f7ba3
refactor: rename types
zsilbi Jun 5, 2025
500eb80
refactor: source map merge
zsilbi Jun 5, 2025
3b09cd3
refactor: minor updates
zsilbi Jun 5, 2025
d416f7e
refactor: improve type safety
zsilbi Jun 5, 2025
5042e7f
perf: swap conditions
zsilbi Jun 5, 2025
ae3d5bd
refactor: rename type
zsilbi Jun 5, 2025
9d2c588
fix. source map merge input types
zsilbi Jun 5, 2025
d70da4e
chore: rearrange imports
zsilbi Jun 5, 2025
076ac4d
refactor: oxc transform tuples
zsilbi Jun 5, 2025
37866d5
fix: remove uneeded spread
zsilbi Jun 5, 2025
50fc0c1
fix: minify options
zsilbi Jun 5, 2025
bf75d30
fix: transform options
zsilbi Jun 5, 2025
aedb3bf
refactor: simplify option types
zsilbi Jun 5, 2025
f01b03b
docs: add references to mkdist sources
zsilbi Jun 5, 2025
d936dac
refactor: simplify options
zsilbi Jun 5, 2025
91001a6
perf: swap conditions
zsilbi Jun 5, 2025
ff57c29
refactor: source config
zsilbi Jun 5, 2025
52004fa
refactor: split transformDir
zsilbi Jun 5, 2025
fa64ed2
docs: add tsdoc to methods
zsilbi Jun 5, 2025
f5116c5
feat: `mapDir` option for transform entries
zsilbi Jun 5, 2025
a1191be
refactor: rename utils to declarations
zsilbi Jun 5, 2025
5d19c33
test: update snapshot with correct paths
zsilbi Jun 5, 2025
ac900af
feat: non-isolated declarations emit from oxc transformer
zsilbi Jun 5, 2025
7d8927d
refactor: normalize mapDir
zsilbi Jun 5, 2025
3fb58b4
docs: update tsdoc
zsilbi Jun 5, 2025
310f53f
refactor: createTransformer
zsilbi Jun 5, 2025
8c1b4db
fix: use single new lines in console
zsilbi Jun 5, 2025
427ab8d
feat: read nested tsconfig
zsilbi Jun 5, 2025
24d7775
docs: clarfiy oxc dts fallback
zsilbi Jun 5, 2025
90208d5
fix: remove unused option
zsilbi Jun 5, 2025
fdd6b06
fix: export compat loader options type
zsilbi Jun 5, 2025
a23e1cf
docs: remove note
zsilbi Jun 5, 2025
00c0b11
refactor: move dts disable in transform
zsilbi Jun 5, 2025
d972372
feat: tsgo (WIP)
zsilbi Jun 6, 2025
ea18943
test: refactor test suite (WIP)
zsilbi Jun 6, 2025
9dac51a
test: refactor test suite
zsilbi Jun 6, 2025
e31c9b1
feat: tsgo
zsilbi Jun 6, 2025
9016197
chore: update .gitignore to ignore all tsbuildinfo files
zsilbi Jun 6, 2025
bf97ac4
chore: split tsconfig file to disable isolated decl. in tests
zsilbi Jun 6, 2025
f1e7056
build: fix type check
zsilbi Jun 6, 2025
0379037
test: refactor test suite
zsilbi Jun 6, 2025
bb05a4a
test: relative extensions
zsilbi Jun 6, 2025
afb7866
fix: relative extensions
zsilbi Jun 6, 2025
a52362e
chore: revert type testing to src
zsilbi Jun 6, 2025
0b3411b
docs: add func. tsdoc
zsilbi Jun 6, 2025
539c733
test: increase timeout
zsilbi Jun 6, 2025
587cca6
feat: rolldown-dts tsgo support
zsilbi Jun 6, 2025
0412f38
refactor: allow setting tsgo option per entry
zsilbi Jun 6, 2025
1e3a910
fix: remove unused option
zsilbi Jun 6, 2025
2b4c9de
docs: add `tsgo` option to readme
zsilbi Jun 6, 2025
3a1f274
fix: remove unnecessary check
zsilbi Jun 6, 2025
9262dbd
chore(deps): update dependencies
zsilbi Jun 7, 2025
ef9d5a4
fix: remove `tsgo` noCheck
zsilbi Jun 7, 2025
3e53c19
fix: tsgo error handling
zsilbi Jun 7, 2025
77a1f08
fix: improve tsgo error debug
zsilbi Jun 7, 2025
f67089f
refactor: dts types
zsilbi Jun 7, 2025
1f22300
fix: revert tsconfig path resolve
zsilbi Jun 7, 2025
4a2516f
feat: add tsc to tsgo for debugging
zsilbi Jun 7, 2025
0087316
test: update snapshots with declaration comments
zsilbi Jun 7, 2025
ff54bf6
fix: typo
zsilbi Jun 7, 2025
25de6b4
fix: transform result restruct
zsilbi Jun 7, 2025
07205c2
fix: js files dts emit
zsilbi Jun 7, 2025
fa456cc
test: revert snapshot update
zsilbi Jun 7, 2025
f397411
fix: dts gen. condition
zsilbi Jun 7, 2025
deb1969
test: update correct snapshot
zsilbi Jun 7, 2025
bb30591
refactor: tsgo -> tsc-cli declarations
zsilbi Jun 8, 2025
fde5baa
docs: remove todo
zsilbi Jun 8, 2025
0ac0e1f
chore: update tsgo
zsilbi Jun 8, 2025
9cd3ee5
refactor: transform with dts tsc/tsgo cli
zsilbi Jun 8, 2025
8d7abe7
chore: ignore .obuild folders
zsilbi Jun 8, 2025
33f0b14
test: remove providing tsconfig manually
zsilbi Jun 8, 2025
aa035ab
chore: reorganize imports
zsilbi Jun 8, 2025
e2a4827
refactor: tsc-cli
zsilbi Jun 9, 2025
f41a49e
feat: vue-tsc cli
zsilbi Jun 9, 2025
949284a
fix: revert default compiler to `tsgo`
zsilbi Jun 10, 2025
4f4e690
fix: use cross-platform symlinks
zsilbi Jun 10, 2025
2455296
refactor: move plugins to monorepo
zsilbi Jun 17, 2025
67bdb39
fix: ci errors
zsilbi Jun 17, 2025
f11c1eb
chore: update plugins
zsilbi Jun 18, 2025
784f4ef
feat: remove `pkg-types`
zsilbi Jun 18, 2025
6341302
chore: remove tsbuildinfo
zsilbi Jun 18, 2025
c33ffab
feat: add config options for built-in plugins
zsilbi Jun 18, 2025
4a73f6d
chore: update lockfile
zsilbi Jun 18, 2025
6258099
docs: update readme
zsilbi Jun 18, 2025
de7cf70
chore: update plugins
zsilbi Jun 18, 2025
2bb1a50
test: add tests for default plugins
zsilbi Jun 18, 2025
ff3d99f
test: transformer and utils
zsilbi Jun 18, 2025
2dc896c
test: simplify mocks
zsilbi Jun 18, 2025
7485108
fix: raw files handling w/o srcPath
zsilbi Jun 18, 2025
68b5ca3
feat: add plugin types
zsilbi Jun 19, 2025
b5f1027
chore: update plugins
zsilbi Jun 19, 2025
3b6c6dd
feat: dynamicly import builders based on entry type
zsilbi Jun 19, 2025
81ea286
chore: use released `@obuild` packages
zsilbi Jun 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Some differences are not easy to adopt. Developing as a standalone project allow
## Currently used by

- [📦 obuild](https://github.com/unjs/obuild/)
- [📦 obuild-plugins](https://github.com/unjs/obuild-plugins/)
- [🌳 rou3](https://github.com/h3js/rou3/)
- [💥 srvx](https://github.com/h3js/srvx)
- [🕊️ unenv](https://github.com/unjs/unenv)
Expand Down Expand Up @@ -80,10 +81,14 @@ export default defineBuildConfig({
type: "transform",
input: "./src/runtime",
outDir: "./dist/runtime",
// minify: false,
// stub: false,
// oxc: {},
// resolve: {}
// plugins: [],
// oxc: {
// dts: {},
// transform: {},
// minify: false, // Disabled by default
// },
},
],
hooks: {
Expand All @@ -96,6 +101,13 @@ export default defineBuildConfig({
});
```

## Transform plugins

For transform entries, you can use the `plugins` option to specify the plugins to use.
You can find the available plugins in the [obuild-plugins](https://github.com/unjs/obuild-plugins) repository.

By default, the `oxc-dts` and `oxc-transform` plugins are enabled, `oxc-minify` can be turned on using the `oxc.minify` config option.

## Stub Mode

When working on a package locally, it can be tedious to rebuild or run the watch command every time.
Expand Down
4 changes: 1 addition & 3 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import unjs from "eslint-config-unjs";

export default unjs({
ignores: [
// ignore paths
],
ignores: ["test/**/fixture"],
rules: {
"unicorn/no-null": "off",
"unicorn/no-nested-ternary": "off",
Expand Down
14 changes: 9 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obuild",
"version": "0.2.1",
"version": "0.3.0",
"description": "Zero-config ESM/TS package builder",
"repository": "unjs/obuild",
"license": "MIT",
Expand Down Expand Up @@ -28,17 +28,21 @@
"test:types": "tsc --noEmit --skipLibCheck"
},
"dependencies": {
"@obuild/plugin-oxc-transform": "^0.0.1",
"@obuild/plugin-oxc-dts": "^0.0.1",
"@obuild/plugin-oxc-minify": "^0.0.1",
"autoprefixer": "^10.4.21",
"c12": "^3.0.4",
"consola": "^3.4.2",
"defu": "^6.1.4",
"exsolve": "^1.0.5",
"magic-string": "^0.30.17",
"get-tsconfig": "^4.10.1",
"oxc-minify": "^0.72.3",
"oxc-parser": "^0.72.3",
"oxc-transform": "^0.72.3",
"pathe": "^2.0.3",
"pretty-bytes": "^7.0.0",
"rolldown": "1.0.0-beta.12",
"rolldown-plugin-dts": "^0.13.8",
"rolldown": "1.0.0-beta.17",
"rolldown-plugin-dts": "^0.13.11",
"tinyglobby": "^0.2.14"
},
"devDependencies": {
Expand Down
Loading