Skip to content

Commit

Permalink
docs: add the bundling instruction for Webpack (#1236)
Browse files Browse the repository at this point in the history
  • Loading branch information
pan93412 committed Nov 22, 2021
1 parent 3b64b2f commit 29d24b6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/bundling.md
Expand Up @@ -27,4 +27,8 @@ globalThis.__bundlerPathsOverrides = {
};
```

Note that `pino/file`, `pino-worker`, `pino-pipeline-worker` and `thread-stream-worker` are required identifiers. Other identifiers are possible based on the user configuration.
Note that `pino/file`, `pino-worker`, `pino-pipeline-worker` and `thread-stream-worker` are required identifiers. Other identifiers are possible based on the user configuration.

## Webpack Plugin

If you are a Webpack user, you can achieve this with [pino-webpack-plugin](https://github.com/pinojs/pino-webpack-plugin) without manual configuration of `__bundlerPathsOverrides`; however, you still need to configure it manually if you are using other bundlers.

0 comments on commit 29d24b6

Please sign in to comment.