feat: use vite+ toolchain#132
Closed
rolandjitsu wants to merge 17 commits into
Closed
Conversation
added 17 commits
July 11, 2026 15:14
…nd drop UMD bundle Migrate the build/test/lint stack to a modern SWC-era toolchain: - Build with rslib (Rspack/SWC) instead of Rollup + multiple tsc passes; emit ESM (dist/index.js), CommonJS (dist/index.cjs) and type declarations (dist/index.d.ts) from a single config. - Type-check with TypeScript 7. - Replace Jest + ts-jest with Vitest (jsdom, v8 coverage). - Replace the deprecated TSLint with Biome (lint + format). - Drop the runtime tslib dependency (es2020 output needs no helpers); the package is now dependency-free. - Modernize package.json: exports map, "type": "module", Node >= 20 engine. - Update CI to Node 20/22/24 and refresh Dependabot. BREAKING CHANGE: the UMD bundle (dist/bundles/*.umd.js) has been removed and the published dist layout has changed - dist/index.js is now an ES module and dist/index.cjs is the CommonJS build. Script-tag/CDN consumers should load the ESM build from a CDN such as https://esm.sh/file-selector. The minimum supported Node.js version for development is now 20.
Throw a dedicated UnexpectedObjectError (carrying the offending DataTransferItem) instead of a generic Error that stringified to the useless "[object Object] is not a File". Ports #123 to the modernized (Vitest/Biome) toolchain.
The legacy Entry API (readEntries) throws on some platforms, e.g. dragging a folder from Windows Explorer into Chromium, which rejected the entire drop. Prefer getAsFileSystemHandle for directories and fall back to readEntries. Closes #130
Coverage Report for CI Build 29151089689Coverage remained the same at 100.0%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
12 tasks
Collaborator
Author
|
Closing in favor of #133. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What kind of change does this PR introduce?
Did you add tests for your changes?
If relevant, did you update the documentation?
Summary
Try out Vite+ vs rstack.
Does this PR introduce a breaking change?
N/A.
Other information