Skip to content

Commit

Permalink
fix: insert composition api plugin before others
Browse files Browse the repository at this point in the history
This means that other plugins can take advantage of the composition api
  • Loading branch information
danielroe committed May 10, 2020
1 parent 8751acb commit 2ef608b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const compositionApiModule: Module<any> = function () {
this.options.build.transpile.push(/nuxt-composition-api/)

this.options.plugins = this.options.plugins || []
this.options.plugins.push(resolve(this.options.buildDir || '', dst))
this.options.plugins.unshift(resolve(this.options.buildDir || '', dst))
}

export default compositionApiModule
Expand Down

1 comment on commit 2ef608b

@vercel
Copy link

@vercel vercel bot commented on 2ef608b May 10, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.