storybook/addons/a11y/preset.js
2021-02-03 22:34:44 +08:00

14 lines
305 B
JavaScript

function managerEntries(entry = []) {
return [...entry, require.resolve('./dist/esm/register')];
}
function config(entry = []) {
return [
...entry,
require.resolve('./dist/esm/a11yRunner'),
require.resolve('./dist/esm/a11yHighlight'),
];
}
module.exports = { managerEntries, config };