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

babel-plugin-dynamic-import-chunk-name

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-dynamic-import-chunk-name

Babel plugin to automatically add a webpackChunkName comment to dynamic imports.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
98
increased by71.93%
Maintainers
1
Weekly downloads
 
Created
Source

babel-plugin-dynamic-import-chunk-name

Build status package version semantic-release

This plugin will automatically generate webpackChunkName comments for dynamic imports using the imported filename.

Example

In

import("./core/DocumentParser.js")

Out

import(/*webpackChunkName: 'core--document-parser'*/ "./core/DocumentParser.js")

Installation

npm install --save-dev babel-plugin-dynamic-import-chunk-name

Usage

Add the following to your .babelrc file.

{
  "plugins": ["dynamic-import-chunk-name"]
}

Keywords

FAQs

Package last updated on 01 Sep 2020

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