From 577da01451b5069e552779abd8f085ee5a9da531 Mon Sep 17 00:00:00 2001 From: Rahul Kadyan Date: Tue, 26 May 2020 12:51:28 +0530 Subject: [PATCH 1/3] feat: process custom blocks --- src/index.spec.ts | 103 +++++++++++++++++++++++++++++++++++++++++++--- src/index.ts | 71 ++++++++++++++++++++++++++++++-- 2 files changed, 166 insertions(+), 8 deletions(-) diff --git a/src/index.spec.ts b/src/index.spec.ts index ba94d4a..c3bf002 100644 --- a/src/index.spec.ts +++ b/src/index.spec.ts @@ -4,7 +4,7 @@ describe('Rollup Plugin Vue', () => { describe('transform', () => { let transform: (code: string, fileName: string) => Promise<{ code: string }> beforeEach(() => { - transform = PluginVue().transform as any + transform = PluginVue({ customBlocks: ['*'] }).transform as any }) it('should transform