From 9c27501e04bb245dd14f34c70f1879635ab9d6aa Mon Sep 17 00:00:00 2001 From: "james.womack" Date: Thu, 9 Jul 2020 11:10:07 -0700 Subject: [PATCH] docs(readme): options.metadataSubscribers --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 43162e80..4d946111 100644 --- a/README.md +++ b/README.md @@ -86,6 +86,8 @@ This loader also supports the following loader-specific option: * `customize`: Default `null`. The path of a module that exports a `custom` callback [like the one that you'd pass to `.custom()`](#customized-loader). Since you already have to make a new file to use this, it is recommended that you instead use `.custom` to create a wrapper loader. Only use this if you _must_ continue using `babel-loader` directly, but still want to customize. +* `metadataSubscribers`: Default `[]`. Takes an array of context function names. E.g. if you passed ['myMetadataPlugin'], you'd assign a subscriber function to `context.myMetadataPlugin` within your webpack plugin's hooks & that function will be called with `metadata`. + ## Troubleshooting ### babel-loader is slow!