Skip to content

Commit a016ee3

Browse files
committed
fix: properly return empty string for custom blocks
1 parent 847cdb9 commit a016ee3

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/loaders/pitcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const pitch = function(this: webpack.loader.LoaderContext, remainingReque
1818

1919
// ignore custom block
2020
if (remainingRequest.includes('&type=custom'))
21-
return
21+
return ''
2222

2323
// make sure we're dealing with style-loader
2424
if (!remainingRequest.includes('&type=style'))

test/fixtures/vue/templates/App.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@
4646
</div>
4747
</template>
4848

49+
<config>
50+
{
51+
"name": "editor"
52+
}
53+
</config>
54+
4955
<script>
5056
export default {
5157
name: 'App',

0 commit comments

Comments
 (0)