Skip to content

Commit

Permalink
update hook name
Browse files Browse the repository at this point in the history
  • Loading branch information
galvez committed Sep 2, 2019
1 parent 6c26e7b commit f9ee1dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/builder/src/builder.js
Expand Up @@ -251,7 +251,7 @@ export default class Builder {
async normalizePlugins () {
const modes = ['client', 'server']
const modePattern = new RegExp(`\\.(${modes.join('|')})(\\.\\w+)*$`)
await this.nuxt.callHook('build:extendPlugins', this.options.plugins)
await this.nuxt.callHook('builder:extendPlugins', this.options.plugins)
return uniqBy(
this.options.plugins.map((p) => {
if (typeof p === 'string') {
Expand Down
2 changes: 1 addition & 1 deletion packages/builder/test/builder.plugin.test.js
Expand Up @@ -31,7 +31,7 @@ describe('builder: builder plugins', () => {
const plugins = await builder.normalizePlugins()

expect(nuxt.callHook).toBeCalledTimes(1)
expect(nuxt.callHook).toBeCalledWith('build:extendPlugins', nuxt.options.plugins)
expect(nuxt.callHook).toBeCalledWith('builder:extendPlugins', nuxt.options.plugins)

expect(plugins).toEqual([
{
Expand Down

0 comments on commit f9ee1dd

Please sign in to comment.