Skip to content

Commit

Permalink
Addon-a11y: Workaround for Vite 5.3.0 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed Jun 13, 2024
1 parent 6276e66 commit 9625bac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/addons/a11y/src/a11yRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const run = async (storyId: string, input: A11yParameters = defaultParameters) =
if (!active) {
active = true;
channel.emit(EVENTS.RUNNING);
const axe = (await import('axe-core')).default;
const { default: axe } = await import('axe-core');

const { element = '#storybook-root', config, options = {} } = input;
const htmlElement = document.querySelector(element as string);
Expand Down

0 comments on commit 9625bac

Please sign in to comment.