Skip to content

Commit

Permalink
docs(readme.md): add Credits section
Browse files Browse the repository at this point in the history
  • Loading branch information
wd-David committed Jun 20, 2022
1 parent 58ef953 commit fd512d0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ This means that when using this plugin the following list of files will be gener
A file for each transport you specify in the plugin constructor's `transports` option. (see below)
Each of the additional file is a bundle and therefore does not contain any external dependency, but it is needed to use pino and it must be included in the deployment.

> Reference: [Pino Bundling](https://github.com/pinojs/pino/blob/master/docs/bundling.md)
> Inspired by [pino-esbuild.js](https://gist.github.com/ShogunPanda/752cce88659a09bff827ef8d2ecf8c80#gistcomment-4199018)
## Usage

Simply include the plugin in your esbuild build script. Make sure you provide the plugin a list of all the pino transports you use via the `transports` option (`pino/file` is always included so no need to specify it).
Expand Down Expand Up @@ -65,3 +62,8 @@ build({
plugins: [esbuildPluginPino({ transports: ['pino-pretty', 'pino-loki'] })],
}).catch(() => process.exit(1))
```

## Credits

- Reference: [Pino Bundling](https://github.com/pinojs/pino/blob/master/docs/bundling.md)
- Inspired by [pino-esbuild.js](https://gist.github.com/ShogunPanda/752cce88659a09bff827ef8d2ecf8c80#gistcomment-4199018) and kudos to [@ShogunPanda](https://github.com/ShogunPanda) & [@scorsi](https://github.com/scorsi)

0 comments on commit fd512d0

Please sign in to comment.