Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
babel-plugin-estrela
Advanced tools
A babel plugin to pre-process jsx/tsx files for the estrela framework.
import { onDestroy, signal } from 'estrela';
const App = () => {
// create a signal with initial value equal to 0.
const count = signal(0);
// create an updater interval function.
const interval = setInterval(() => count.update(x => x + 1), 1000);
// clean interval on destroy this component.
onDestroy(() => clearInterval(interval));
// return JSX element.
return <div>Count is {count() * 2}</div>;
};
It will transpile the code above to:
import { template as _template, h as _h } from "estrela/template";
import { onDestroy, signal } from "estrela";
const _tmpl = _template("<div>Count is </div>");
const App = _props => {
const count = signal(0);
const interval = setInterval(() => count.update(x => x + 1), 1e3);
onDestroy(() => clearInterval(interval));
return _h(_tmpl, {
"0": {
"children": [[() => count() * 2, null]]
}
});
};
Using npm:
$ npm install --save-dev babel-plugin-estrela
or using yarn:
$ yarn add --dev babel-plugin-estrela
For more Estrela information, visit the github page at https://github.com/estrelajs/estrela/.
FAQs
A babel plugin to pre-process estrela jsx/tsx files
The npm package babel-plugin-estrela receives a total of 1 weekly downloads. As such, babel-plugin-estrela popularity was classified as not popular.
We found that babel-plugin-estrela demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.