@o/rollup-plugin-tscc

0.4.7 • 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.

Package Sidebar

Install

npm i @o/rollup-plugin-tscc

Weekly Downloads

1

Version

0.4.7

License

MIT

Unpacked Size

22.8 kB

Total Files

17

Last publish

Collaborators

  • nwienert