Skip to content

Commit

Permalink
Merge pull request #28241 from storybookjs/shilman/fix-a11y-vite-5-3-0
Browse files Browse the repository at this point in the history
Addon-a11y: Workaround for Vite 5.3.0 compat
(cherry picked from commit 01be0f0)
  • Loading branch information
shilman authored and storybook-bot committed Jun 13, 2024
1 parent 001c9d8 commit f10eb79
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 f10eb79

Please sign in to comment.