Comments (4)
Hrm, I see.
unplugin-swc
does have a dependency on unplugin
.
{
"dependencies": {
"unplugin": "^0.6.0"
},
}
Which resolves to version 0.6.3
as that's the latest 0.6.x
release. And that specific version has a peer dependency on vite
.
{
"peerDependencies": {
...
" vite": "^2.3.0"
}
}
Which indeed resolves to 2.9.16
. Using yarn 1.22.19, which did not warn me about the missing peer deps, since vite
is marked as an optional peer dependency in unplugin
.
https://github.com/unjs/unplugin/blob/29fe515d424101970e14c3296eb99a2d553055f7/package.json#L76
You should be able to remove that particular vite version from your package-lock.json
/ yarn.lock
and make sure version 4.x.x
is used instead.
from unplugin-swc.
What issue are you experiencing with Vite 4?
I described how to use Vitest + this plugin for a NestJS app here:
https://github.com/geersch/nestjs-getting-started/blob/main/docs/12-vitest.md
Bumped into a few issues (see caveats / known issues), but nothing related to Vite 4.
from unplugin-swc.
For me, unplugin-swc is using [email protected]
from unplugin-swc.
This should fixed in v1.4.0, give it a try!
from unplugin-swc.
Related Issues (14)
- The automated release is failing 🚨
- Error: Cannot find module './impl/format' HOT 1
- crash with `Error: Cannot find module 'node:fs'` HOT 2
- parse worker error with this plugin HOT 1
- Dependency Dashboard HOT 1
- Scripts within node_modules can't be compiled because of tsconfig.json load error HOT 2
- TypeError: swc.vite is not a function HOT 4
- Error: Dynamic require of "path" is not supported HOT 5
- `exclude` option doesnt override `.swcrc` exclude HOT 3
- Internal server error: unknown variant ``ESNext`` HOT 2
- Is it possible to support webpack
- Decorators do not work when using custom `.swcrc` instead of `tsconfig.json`
- Ignore `target` from tsconfig when `env` is set in SWC config
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unplugin-swc.