plugins icon indicating copy to clipboard operation
plugins copied to clipboard

feat(loadable-components)!: Transpile `lazy` and signatures configuration

Open Themezv opened this issue 1 year ago • 2 comments
trafficstars

closes #241

This pull request brings behavior closer to babel plugin:

  1. Add ability to transpile lazy from @loadable/component without hacks
  2. 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" 
    }]
}]

Themezv avatar Dec 18 '23 13:12 Themezv

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Dec 18 '23 13:12 CLAassistant

⚠️ 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

changeset-bot[bot] avatar Mar 23 '24 18:03 changeset-bot[bot]