![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@lwc/babel-plugin-component
Advanced tools
This babel plugin does the following transform:
@api
decorator to publicProperties
and publicMethods
static properties.@wire
decorator to wire
static property.@track
decorator to track
static property.render
from a collocated template if a component class doesn't already implement a render
method.npm install babel @lwc/babel-plugin-component
const babel = require('@babel/core');
const lwcPlugin = require('@lwc/babel-plugin-component');
const source = `
import { LightningElement } from 'lwc';
export default class extends LightningElement {}`;
const { code } = babel.transformSync(source, {
plugins: [
[
lwcPlugin,
{
/* options */
},
],
],
});
name
(type: string
, optional) - name of the component, e.g. foo
in x/foo
.namespace
(type: string
, optional) - namepace of the component, e.g. x
in x/foo
.isExplicitImport
(type: boolean
, optional) - true if this is an explicit import.dynamicImports
(type: object
, optional) - see below:
loader
(type: string
, optional) - loader to use at runtime.strictSpecifier
(type: boolean
, optional) - true if a strict specifier should be used.instrumentation
(type: InstrumentationObject
, optional) - instrumentation object to gather metrics and non-error logs for internal use. See the @lwc/errors
package for details on the interface.apiVersion
(type: number
, optional) - API version to associate with the compiled component.FAQs
Babel plugin to transform a LWC module
The npm package @lwc/babel-plugin-component receives a total of 80,951 weekly downloads. As such, @lwc/babel-plugin-component popularity was classified as popular.
We found that @lwc/babel-plugin-component demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.