1
0
mirror of https://github.com/yldio/copilot.git synced 2025-01-09 18:40:12 +02:00
copilot/ui/docs/webpack/embed-markdown-loader/src/compile/index.js

19 lines
335 B
JavaScript
Raw Normal View History

2016-10-23 07:27:18 +03:00
const compile = require('./compile');
const detach = require('./detach');
module.exports = ({
source,
entrypoint,
config
}, fn) => {
return !config.fullpath ? compile({
source,
entrypoint,
config: config.instantiated
}, fn) : detach({
source,
entrypoint,
configFullpath: config.fullpath
}, fn);
};