Babel plugin for After.js (version 3.3.5) that enhances asyncComponent() calls by automatically adding webpackChunkName comments and chunkName properties. This plugin is part of the After.js framework for server-side rendered React apps. It scans for imports from '@deviousm/after' and '@deviousm/after/asyncComponent', identifies asyncComponent calls used as values of 'component' object properties, and transforms them to include webpack chunk hints. Key differentiator: automates chunk naming to avoid manual annotation and path issues.
npm install babel-plugin-after-deviousmVerified import paths — ran on the pinned version, not inferred.
Configures the Babel plugin to automatically add webpack chunk names for After.js asyncComponent calls.
Ensure asyncComponent is called directly as the value of a property named 'component' in an object literal.
Use the correct import path: import { asyncComponent } from '@deviousm/after';If you need a custom chunk name, specify it via webpackChunkName comment or the chunkName option in asyncComponent.
Only use this plugin if you are using After.js with asyncComponent from @deviousm/after.
Run: npm install --save-dev babel-plugin-after-deviousm. Then add 'after-deviousm' to your Babel plugins array.
Install necessary presets: npm install --save-dev @babel/preset-env @babel/preset-react. Add them to Babel config in presets array.
Update Babel to version 7 or later. Ensure import statements use valid syntax: import { asyncComponent } from '@deviousm/after';No dependency data recorded yet.