-
-
Notifications
You must be signed in to change notification settings - Fork 700
feat: introduce tsdown, support mixed js & ts in codebase
#2916
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
9romise
wants to merge
33
commits into
vuejs:master
Choose a base branch
from
9romise:rewrite-ts
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+283
−246
Open
Changes from 11 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
b9ad774
feat: introduce `tsdown`, support js & ts
9romise 928fe26
fix: dont bundle typescript
9romise 1b24273
chore: update
9romise 0f786d8
chore: update
9romise aedcd8d
refactor: rewrite `processor` in ts
9romise bd930b7
chore: specific tsdown target
9romise 79d440d
fix: dont touch docs
9romise 18d7488
ci: try fix
9romise 861c1d6
fix: correct docs dev & build
9romise 3d7f91c
chore: update
9romise f1c5923
chore: update
9romise eb2d18d
build: remove specific node version
9romise 27f3479
chore: use `import` instead of `require` in esm files
9romise 8c11d97
Merge branch 'master' into rewrite-ts
9romise 17974eb
chore: update `tsdown`
9romise 5e71d49
ci: add build in workflow
9romise 6c4041b
fix: don't fix extension
9romise 8d33d93
chore: update
9romise f081f42
Merge branch 'master' into pr/2916
9romise 7108c0a
chore: use pkg.pr.new/rolldown temporarily
9romise 1d7a583
ci: run build on node lts
9romise e9f7c7e
ci: cleanup
9romise 3b54278
ci: add `needs`
9romise 4438e9f
chore: update
9romise 7633074
Merge remote-tracking branch 'upstream/master' into rewrite-ts
9romise 75b42d3
chore: update typegen
9romise 34f9c2b
cherry-pick: #2967
9romise 4f2f525
chore: update `plugin.js`
9romise 7cfa8d0
refactor: rewrite `index` in `.ts`
9romise e3dbe93
cherry-pick: #2968
9romise b92bc9c
chore: fix lint
9romise 46ac044
Merge branch 'master' into rewrite-ts
9romise 9c58e1f
chore: use latest `tsdown`, don't override `rolldown`
9romise File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,3 +14,4 @@ yarn-error.log | |
| /docs/.vitepress/cache | ||
| typings/eslint/lib/rules | ||
| eslint-typegen.d.ts | ||
| dist | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| import { name, version } from '../package.json' with { type: 'json' } | ||
|
|
||
| export { name, version } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| import { defineConfig } from 'tsdown' | ||
|
|
||
| export default defineConfig({ | ||
| target: 'node18', | ||
| entry: ['lib/index.js'], | ||
| format: ['cjs'], | ||
| copy: ['lib/index.d.ts'], | ||
| dts: false, | ||
| external: ['typescript'], | ||
| unbundle: true | ||
| }) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.