Skip to content

Commit

Permalink
fix: should export the pitch function
Browse files Browse the repository at this point in the history
fixes #1677

TODO:
Need to add tests later
  • Loading branch information
sodatea committed May 25, 2020
1 parent 7564a7d commit 79a94dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pitcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const pitcher: webpack.loader.Loader = code => code

// This pitching loader is responsible for intercepting all vue block requests
// and transform it into appropriate requests.
pitcher.pitch = function() {
export const pitch = function() {
const context = this as webpack.loader.LoaderContext
const rawLoaders = context.loaders.filter(isNotPitcher)
let loaders = rawLoaders
Expand Down

0 comments on commit 79a94dd

Please sign in to comment.