A Babel plugin that optimizes ES module re-exports in AMD by replacing verbose definitions with concise alias calls. Version 1.1.0 is the latest stable release. The plugin targets Ember applications using loader.js but can work with any AMD loader supporting alias API. Differentiator: drastically reduces boilerplate for re-export-only modules, saving bytes over the wire in production builds.
npm install babel-plugin-compact-reexportsVerified import paths — ran on the pinned version, not inferred.
Shows Babel configuration and the optimization from verbose AMD define to compact alias.
Ensure Babel is configured to output AMD modules, e.g., using @babel/plugin-transform-modules-amd.
Verify your AMD loader supports similar alias functionality, or avoid using this plugin.
Simplify re-exports to plain default or star exports to benefit from compaction.
Run 'npm install babel-plugin-compact-reexports --save-dev' and ensure Babel config has 'compact-reexports' in plugins array.
Run 'npm install babel-plugin-compact-reexports --save-dev'.