mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 04:31:06 +08:00
fix(#12622): addon-a11y import with vite
This commit is contained in:
parent
2de4b0e9a0
commit
50f4241958
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user