plugins
plugins copied to clipboard
feat(loadable-components)!: Transpile `lazy` and signatures configuration
closes #241
This pull request brings behavior closer to babel plugin:
- Add ability to transpile
lazyfrom@loadable/componentwithout hacks - Add ability to configure signatures. babel plugin doc
BREAKING CHANGE:
Before this changes plugin detected loadable only by loadable keyword.
After you should to configure signatures if you are using imports non from @loadable/component.
For example:
["loadable-components", { "signatures": [
{
"from": "myLoadableWrapper",
"name": "default"
},
{
"from": "myLoadableWrapper",
"name": "lazy"
}]
}]
⚠️ No Changeset found
Latest commit: 4c1e65a73940349456207f9189845528760c7f51
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR