Nervously Practice Multithreading

    babel-plugin-dynamic-import-chunk-name

    1.0.0 • Public • Published

    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"]
    }

    Install

    npm i babel-plugin-dynamic-import-chunk-name

    DownloadsWeekly Downloads

    201

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    4.3 kB

    Total Files

    5

    Last publish

    Collaborators

    • widen-npm