index.js (675B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 /* eslint-env node */ 5 6 /** 7 * This file hooks our addon into Storybook. Having a root-level file like this 8 * is a Storybook requirement. It handles registering the addon without any 9 * additional user configuration. 10 */ 11 12 function config(entry = []) { 13 return [...entry, require.resolve("./preset/preview.mjs")]; 14 } 15 16 function managerEntries(entry = []) { 17 return [...entry, require.resolve("./preset/manager.mjs")]; 18 } 19 20 module.exports = { 21 managerEntries, 22 config, 23 };