packages/transform/src/compile.js
async function compileContext(target, contextOptions) {
	const context = await getContext(target, contextOptions)

	return async function (data/** @param {object} */) {
		return context.map(data)
	}
}
async function compileContext(target, contextOptions) {
	const context = await getContext(target, contextOptions)

	return async function (data/** @param {object} */) {
		return context.map(data)
	}
}
async function compileContext ( target , contextOptions ) { const context = await getContext ( target , contextOptions ) return async function ( data /** @param {object} */ ) { return context . map ( data ) } }
fetch a conext by path or url and return an async context.map helper function

@param {string} target
@param {object} [contextOptions]
@returns {Promise<function>}
fetch a conext by path or url and return an async context . map helper function