New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@lwc/rollup-plugin

Package Overview
Dependencies
Maintainers
12
Versions
808
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lwc/rollup-plugin

Rollup plugin to compile LWC

  • 1.0.0-alpha.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.9K
decreased by-13.66%
Maintainers
12
Weekly downloads
 
Created
Source

@lwc/rollup-plugin

Rollup plugin to compile LWC

Installation

yarn add -D @lwc/rollup-plugin

Note that both @lwc/engine and @lwc/compiler are peer dependencies of this plugin that need to be installed separately.

Usage

// rollup.config.js
import rollupPlugin from '@lwc/rollup-plugin';

export default {
    input: './src/main.js',
    plugins: [rollupPlugin()],
};

Options

  • rootDir (string, optional, default: input) - set the LWC module directory
  • sourcemap (boolean, optional, default: false) - make the LWC compiler produce source maps
  • resolveFromPackages (boolean, optional, default: true) - let the rollup plugin resolve modules from the node_modules directory
  • stylesheetConfig (object, optional, default: {}) - the configuration to pass to the @lwc/style-compiler

FAQs

Package last updated on 28 May 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc