This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve error message when .use() not called for a Plugin
Previously if `.toConfig()` was called when a plugin was only partially configured, it raised with the unhelpful: `TypeError: Cannot read property '__expression' of undefined` Now the scenario results in an Error of form: `Invalid plugin configuration: plugin('foo').use(<Plugin>) was not called to specify the plugin` Or for minimizer plugins: `Invalid optimization.minimizer configuration: optimization.minimizer('foo').use(<Plugin>) was not called to specify the plugin` Fixes scenario 1 in: #204 (comment)
- Loading branch information