Skip to content

Commit 7856f7e

Browse files
committed
feat!: Provide default configuration in register functions (#83)
feat: Allow register function configuration to be overridden
1 parent dc9f085 commit 7856f7e

File tree

22 files changed

+287
-235
lines changed

22 files changed

+287
-235
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Consumers should use the exported `extensions` or `jsVariants` object to determi
2020

2121
1. If the value is null, do nothing.
2222
2. If the value is a string, try to require it.
23-
3. If the value is an object, try to require the `module` property. If successful, the `register` property (a function) should be called with the module passed as the first argument.
23+
3. If the value is an object, try to require the `module` property. If successful, the `register` property (a function) should be called with the module passed as the first argument. **Advanced:** An optional second argument can be provided to replace the default configuration for a hook.
2424
4. If the value is an array, iterate over it, attempting step #2 or #3 until one of the attempts does not throw.
2525

2626
## API

0 commit comments

Comments
 (0)