0.2.0 • Published 1 year ago

swc-plugin-nossr v0.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

swc-plugin-nossr

Optimize <NoSSR /> component during ssr build stage.

usage

pnpm install swc-plugin-nossr

add this plugin to swc config file.

{
  "jsc": {
    "experimental": {
      "plugins": [[require.resolve("swc-plugin-nossr"), {}]]
    }
  }
}

features

Replace <NoSSR /> children element with empty. e.g.

<NoSSR>
-  <div>hello world</div> 
</NoSSR>
0.2.0

1 year ago

0.1.1

1 year ago