Comments (9)
That's a great name. I'll start the project as soon as possible. I'll take a look at the api
on the node
side. If you have any questions, I'll ask you in time.
from fervid.
@ErKeLost Thanks. The existing Node API isn't fully stable yet. For the sake of performance and compatibility I will change the interface to a class instance which stores the options, something like:
// During unplugin crration
const compiler = new Fervid({
isProd: true,
// other options
})
// during transform
compiler.compile(source)
It would be great if I can make such changes before Fervid is 1.0. What do you think?
P.S. Please ping me or create an issue/PR so I add your plugin to Readme when it's ready.
from fervid.
hi @phoenix-ru This is the repo address unplugin-vue-fervid.
I have seen that the example in our current repo is the direct use of compilerSync
, so should I continue to use this for development or wait for you
// During unplugin crration.
Const compiler = new Fervid ({.
IsProd: true.
// other options.
}).
// during transform.
Compiler.compile (source).
What about when this api is ready?
from fervid.
Hi @ErKeLost.
I can probably change the API to the new one today or in the next few days. I'll ping you when ready
from fervid.
@ErKeLost I published @fervid/[email protected]
with the mentioned changes. I also updated node/unplugin
to the desired usage.
Btw, compiler.compileAsync
is non-blocking and therefore generally faster even on default 4 libuv
threads (11.6K ops/sec vs 6.5K ops/sec). If you know how to make an async plugin, I would encourage to use that. Maybe behind a flag async: true
(default: true)?
from fervid.
Hi @ErKeLost. I have Webpack Dev/Prod/HMR working via unplugin and Virtual Modules.
I intend to get Vite working as well, so any help would be appreciated.
Farm native plugin is also planned
from fervid.
Hi @phoenix-ru I want to create a project under unplugin. Do you think that's okay? so we can support vite
rollup
farm
rspack
webpack
esbuild
. If you agree with this idea, you may need your help to give the repo a name. I'll do the rest of the work. Farm's native support will also be launched immediately. Farm has done most of the work.
from fervid.
That would be great. What about unplugin-vue-fervid
?
How else can I help you? You can gain insights about the existing unplugin in node
folder, both the implementation and the usage.
from fervid.
@phoenix-ru It's so exciting. I see that I can already use the compiler class syntax. Our api should be stable for the time being, and it shouldn't change much in the future. If that's the case. I should be able to develop it.
from fervid.
Related Issues (20)
- pure expression root nodes cannot be compiled HOT 3
- CI tests for ARM architecture
- Generate getter and setter for return bindings
- Auto-imports for known `vue` symbols
- Make `<script>` compilation spec-compliant
- Dedupe imports between `<script>` and `<script setup>`
- Support directive binding resolutions
- Support template assignments
- Implement `await` detection
- Disallow exports in `<script setup>` HOT 1
- Support SFC name inference
- Research TS development experience
- Support auto-imports (components and symbols)
- Support Vapor mode
- Multi-target code generation
- Support Farm Rust Plugin HOT 14
- Provide LSP HOT 1
- Support `genDefaultAs`
- Make `<template>` compilation spec-compliant
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 fervid.