From 50f4241958950e8caa6a8924cf9fa915b14471fc Mon Sep 17 00:00:00 2001 From: Jimmy Somsanith Date: Mon, 18 Apr 2022 22:24:13 +0200 Subject: [PATCH] fix(#12622): addon-a11y import with vite --- addons/a11y/src/a11yRunner.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/a11y/src/a11yRunner.ts b/addons/a11y/src/a11yRunner.ts index 8a9463116a6..73e97a6340c 100644 --- a/addons/a11y/src/a11yRunner.ts +++ b/addons/a11y/src/a11yRunner.ts @@ -39,7 +39,7 @@ const run = async (storyId: string) => { if (!active) { active = true; channel.emit(EVENTS.RUNNING); - const axe = await import('axe-core'); + const axe = (await import('axe-core')).default; const { element = getElement(), config, options = {} } = input; axe.reset();