Skip to content

Commit d07e74e

Browse files
committed
possibility to load custom list of plugins
1 parent d0ff7e9 commit d07e74e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/index.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,11 @@ hook(filename => {
5858
* @param {array} opts.u
5959
* @param {array} opts.use
6060
*/
61-
export default function configure(opts) {}
61+
export default function configure(opts) {
62+
opts = opts || {};
63+
64+
let customPlugins = opts.u || opts.use;
65+
plugins = Array.isArray(customPlugins)
66+
? customPlugins
67+
: [localByDefault, extractImports, scope];
68+
}

0 commit comments

Comments
 (0)