#swc-plugin #add #dataset #logging

swc-plugin-add-logging-dataset

swc plugin add dataset for logging

3 releases

0.1.2 Oct 18, 2023
0.1.1 Oct 6, 2023
0.1.0 Oct 6, 2023

#519 in Programming languages

Download history 5/week @ 2024-02-18 20/week @ 2024-02-25 32/week @ 2024-03-24 31/week @ 2024-03-31 1/week @ 2024-04-07

64 downloads per month

Apache-2.0

8KB
95 lines

add-logging-dataset

This plugin add dataset for logging published in crates.io

  • data-tossinvest-log for clickable and custom clickable
  • data-section-name for custom section

How to publish it.

  • change code and add test code to /tests
  • npm test will run cargo test
  • if everything work fine npm run prepack to build wasi
  • check cargo prepublish validation with npm run valid
  • to publish this plugin to npm change version in package.json npm publish
  • if you want to publish to crate please contact jimmy maybe you don't need it

How to use it.

  • In your next app version >= 12.2.0
  • next.config.js to add belong
experimental: {
    swcPlugins: [
      [
        '@tossinvest/swc-add-logging-dataset', {},
      ],
    ],
  },```

Dependencies

~9–17MB
~246K SLoC