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-vtex-render-route
Advanced tools
A babel plugin for extracting VTEX Render route information from a component
A babel plugin for extracting VTEX Render route information from a component
If you write the following:
import route from 'vtex.renderjs/route.js'
// Your React component code here
// Let's call this component 'Home'
export default route('home', '/')(Home)
It will extract the information on the parameters provided for the route
function and append it to the babel's file metadata
property.
With the example above it would create something like this:
file {
metadata {
// Various babel's properties
vtexRender {
route {
name: 'home',
path: '/'
}
}
}
}
For the extraction to be succesful it depends on some rules:
import
from vtex.renderjs/route.js
That's it!
The name of the function isn't fixed, sou you're not required to use the name route
(as written on our example).
This plugin is intended to be used in conjunction with gulp-vtex-render on the VTEX Toolbelt. Together they're able to extract route information on build time for the VTEX Render framework.
FAQs
A babel plugin for extracting VTEX Render route information from a component
The npm package babel-plugin-vtex-render-route receives a total of 0 weekly downloads. As such, babel-plugin-vtex-render-route popularity was classified as not popular.
We found that babel-plugin-vtex-render-route demonstrated a not healthy version release cadence and project activity because the last version was released 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.