Wondering what’s next for npm?Check out our public roadmap! »

    @tscc/rollup-plugin-tscc

    0.6.4 • Public • Published

    rollup-plugin-tscc

    This is a companion plugin for tscc that enables using bundle information specified in tscc spec file in rollup. This works by creating several iife bundles for each of modules specified in the spec. For multiple modules, it merges non-entry chunks into appropriate entry chunk in order to emulate closure compiler's bundling strategy.

    • It only supports IIFE bundles - output.format will be overridden to iife.
    • It does not expect dynamic imports. As of writing, closure compiler does not even parse dynamic import. When closure compiler add supports for it (probably it would provide some interoperability with goog.loadModule and such) we may update the plugin.

    For more detailed deescription, we refer to the README of the main package.

    Install

    npm i @tscc/rollup-plugin-tscc

    DownloadsWeekly Downloads

    29

    Version

    0.6.4

    License

    MIT

    Unpacked Size

    27 kB

    Total Files

    15

    Last publish

    Collaborators

    • avatar