mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-09 00:19:13 +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) {
|
if (!active) {
|
||||||
active = true;
|
active = true;
|
||||||
channel.emit(EVENTS.RUNNING);
|
channel.emit(EVENTS.RUNNING);
|
||||||
const axe = await import('axe-core');
|
const axe = (await import('axe-core')).default;
|
||||||
|
|
||||||
const { element = getElement(), config, options = {} } = input;
|
const { element = getElement(), config, options = {} } = input;
|
||||||
axe.reset();
|
axe.reset();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user