diff --git a/packages/bbob-core/src/index.js b/packages/bbob-core/src/index.js index e2bd5bd..cb01d20 100644 --- a/packages/bbob-core/src/index.js +++ b/packages/bbob-core/src/index.js @@ -18,6 +18,7 @@ export default function bbob(plugs) { const parseFn = options.parser || parse; const renderFn = options.render; + const data = options.data || null; if (typeof parseFn !== 'function') { throw new Error('"parser" is not a function, please pass to "process(input, { parser })" right function'); @@ -41,6 +42,7 @@ export default function bbob(plugs) { render: renderFn, iterate, match, + data, }) || tree; });