npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ohos-ports/swc-plugin-loadable-components

v13.0.0-beta.1

Published

SWC plugin for `@loadable/components` (HarmonyOS port, wasm rebuilt against swc_core v71.0.3 for @ohos-ports/swc-core host ABI)

Readme

loadable-components

@swc/plugin-loadable-components transforms @loadable/component dynamic imports to support server-side rendering (SSR) and code splitting. It is the SWC equivalent of the @loadable/babel-plugin and enables the full @loadable/component SSR workflow when using SWC as your compiler.

Config

["loadable-components", {}]

Sometimes you need to wrap loadable with your own custom logic. There are many use cases for it, from injecting telemetry to hiding external libraries behind facade. By default loadable-components are configured to transform dynamic imports used only inside loadable helpers, but can be configured to instrument any other function of your choice.

Custom signatures with specific package sources

["loadable-components", { "signatures": [
    {
        "from": "myLoadableWrapper",
        "name": "default"
    },
    {
        "from": "myLoadableWrapper",
        "name": "lazy"
    }]
}]

Custom signatures without package source (matches any import)

To match any import with a specific name regardless of the source package (useful for vendored or aliased packages), omit the from field:

["loadable-components", { "signatures": [
    {
        "name": "loadable"
    }]
}]

This will transform any default import named loadable, regardless of where it's imported from:

import loadable from 'my-vendored-loadable';  // will be transformed
import loadable from '@loadable/component';   // will be transformed

@swc/plugin-loadable-components

13.0.0

Major Changes

  • a9a7fe9: build!: Update swc_core to v78.0.0

12.0.0

Major Changes

  • 74931df: build!: Update swc_core to v77.0.0

11.19.0

Minor Changes

  • 8d2db7f: build: Update swc_core to v76.0.0

11.18.0

Minor Changes

  • 1a6fdee: build: Update swc_core to v75.0.0

11.17.0

Minor Changes

  • 6051cea: build: Update swc_core to v74.0.0

11.16.0

Minor Changes

  • b7be81b: build: Update swc_core to v73.0.0

11.15.0

Minor Changes

  • 4b382e7: build: Update swc_core to v72.0.0

11.14.1

Patch Changes

  • e785517: build: Update swc_core to v71.0.5

11.14.0

Minor Changes

  • 7cc5e96: build: Update swc_core to v72

11.13.0

Minor Changes

  • c3013d7: build: Update swc_core to v69

11.12.0

Minor Changes

  • 3b04284: build: Update swc_core to v68

11.11.0

Minor Changes

  • 3b4d5b9: build: Update swc_core to v67

11.10.0

Minor Changes

  • 5e967fc: build: Update swc_core to v66.0.3

11.9.0

Minor Changes

  • d2f9cfa: build: Update swc_core to v65.0.0

11.8.0

Minor Changes

  • a0fb975: Update swc_core to v61.0.1

11.7.0

Minor Changes

  • 1cbeb5a: build: Update swc_core to v58.0.1

11.6.0

Minor Changes

  • 2113ddb: build: Update swc_core to v57

11.5.0

Minor Changes

  • 870774a: build: Update swc_core to v56

11.4.0

Minor Changes

  • 66f5258: build: Update swc_core to v55.x.x

11.3.0

Minor Changes

  • 9c163ec: Update swc_core to v53, really

11.2.0

Minor Changes

  • 3799fa4: Update swc_core to v53.0.0

11.1.0

Minor Changes

  • 0a1d66f: Update swc_core to v52.0.0

11.0.1

Patch Changes

  • a73246f: build: Update swc_core to v49.0.0

11.0.0

Major Changes

  • 6c46f86: feat: Enable backward-compatibility feature

10.1.1

Patch Changes

  • ad79e09: Update swc_core to v48.0.4

10.1.0

Minor Changes

  • 7a0fbdb: Update swc_core to v48

10.0.0

Major Changes

  • 593f438: Update swc_core to v47

9.0.0

Major Changes

  • 25e0c2c: Update swc_core to v46.0.0

8.5.0

Minor Changes

  • c324a59: Update swc_core to v45

8.4.0

Minor Changes

  • 8bad98d: Update swc_core to v44

8.3.0

Minor Changes

  • 47be132: Update swc_core to v42

8.2.0

Minor Changes

  • 0c9d7a1: build: Update swc_core to v39.0.0

8.1.0

Minor Changes

  • a872100: build: Update swc_core to v38

8.0.2

Patch Changes

  • 9b08ff7: Update swc_core to v35

8.0.1

Patch Changes

  • df280ad: Update swc_core to v34.0.0

8.0.0

Major Changes

  • 562e755: Update swc_core to v33

7.0.2

Patch Changes

  • 85719ca: Update swc_core to v32

7.0.1

Patch Changes

  • 8d5ce5c: Update swc_core to v28.0.0

7.0.0

Major Changes

  • cf2636b: Update swc_core to v27

6.0.4

Patch Changes

  • e3e743d: Update swc_core to v27

6.0.3

Patch Changes

  • d51d525: Update swc_core to v22.0.0

6.0.2

Patch Changes

  • cb94b92: Update swc_core to v21.0.1

6.0.1

Patch Changes

  • 31e3254: build: Update swc_core to v19.0.0

6.0.0

Major Changes

  • f0fee1d: Update swc_core to v15.0.1

5.3.1

Patch Changes

  • 04465bc: Update swc_core to v14.0.0, really

5.3.0

Minor Changes

  • bfa0a51: Update swc_core to v13

5.2.0

Minor Changes

  • b8c4e6c: Update swc_core to v12

5.1.0

Minor Changes

  • 4c8b0e2: Update swc_core

5.0.4

Patch Changes

  • e8973e8: Update swc_core to v10.2.3

5.0.3

Patch Changes

  • f436a09: Update swc_core to v10.

5.0.2

Patch Changes

  • f155bce: Update swc_core to v9

5.0.1

Patch Changes

  • c9e75ce: Bump crate versions

5.0.0

Major Changes

  • 4574a70: Update swc_core to v8.0.1

4.0.3

Patch Changes

  • f3cea5f: Bump versions

4.0.2

Patch Changes

  • a73664c: Update swc_core to v6.0.2

4.0.1

Patch Changes

  • 4ff3b22: Move formatjs plugin to official plugin repository

4.0.0

Major Changes

  • 4ad7f56: Update swc_core to v5

3.0.0

Major Changes

  • ba13397: Update swc_core to v4

2.0.4

Patch Changes

  • 0508b6d: Update swc_core to v3

2.0.3

Patch Changes

  • cd5ad2a: Update swc_core to 1.0

2.0.2

Patch Changes

  • 20162c8: Update swc_core to v0.106.0

2.0.1

Patch Changes

  • 04548e2: Update swc_core to 0.103.x

2.0.0

Major Changes

  • f8e5fd0: Update swc_core to 0.102.x

1.0.12

Patch Changes

  • 7d17e25: Update swc_core to v0.101.x

1.0.11

Patch Changes

  • 7391419: Update swc_core to v0.100.0

1.0.10

Patch Changes

  • 9c28afb: Update swc_core to 0.99.x (@swc/core 1.7.0)

1.0.9

Patch Changes

  • 979274e: Transpile lazy and signatures configuration

1.0.8

Patch Changes

  • af25741: Update swc_core to 0.96.0

1.0.7

Patch Changes

  • 41a8f56: Update swc_core to v0.95.x

1.0.6

Patch Changes

  • fc30490: Update swc_core to v0.93.0

1.0.5

Patch Changes

  • a7491af: Support single quote

1.0.4

Patch Changes

  • 0f38844: Publish all chanages

1.0.3

Patch Changes

  • 1cc9eda: Update dependencies

1.0.2

Patch Changes

  • 247cca6: Update rustc to 'nightly-2024-04-16'

1.0.1

Patch Changes

  • 876bbce: Update swc_core to 0.92.x

1.0.0

Major Changes

  • 8e91d39: Update swc_core to 0.91.x

0.3.121

Patch Changes

  • f4df366: Update swc_core

0.3.120

Patch Changes

  • c88b22b: Align package metadata

0.3.119

Patch Changes

  • a3cc4fb: Organize pacakge metadata

0.3.118

Patch Changes

  • e9e78ef: Update swc crates

0.3.117

Patch Changes

  • 6096d6d: Fix plugin version schema issue

0.3.116

Patch Changes

  • 37d3aaf: Depend on the swc download counter package

0.3.115

Patch Changes

  • 8bd92c7: swc_core 0.90.x

0.3.114

Patch Changes

  • 4ef0b7f: Add changelog to the readme

0.3.113

Patch Changes

0.3.112

Patch Changes