From 29d24b6fb6979903cfe8aff13f5f3236ad907db7 Mon Sep 17 00:00:00 2001 From: pan93412 Date: Mon, 22 Nov 2021 15:58:49 +0800 Subject: [PATCH] docs: add the bundling instruction for Webpack (#1236) --- docs/bundling.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/bundling.md b/docs/bundling.md index 5d81a8b52..b6dd5c4f2 100644 --- a/docs/bundling.md +++ b/docs/bundling.md @@ -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. \ No newline at end of file +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.