import * as Querystring from "querystring" ; export async function webpackEntry ( entry , opts = { cwd : process . cwd ( ) } ) { return webpackEntrySync ( entry , opts ) ; } export function webpackEntrySync ( entry , opts = { cwd : process . cwd ( ) } ) { const LOADER = require . resolve ( "./loader" ) ; return `${ LOADER }?${ Querystring . stringify ( { entry : entry , cwd : opts . cwd } ) }!` ; } export const sync = webpackEntrySync ; export default webpackEntry ;