UNPKG

@hypernym/bundler

Version:
23 lines (20 loc) 403 B
const externals = [ /^node:/, /^@types/, /^@rollup/, /^@hypernym/, /^rollup/ ]; function defineConfig(options) { return options; } function resolvePaths(options) { return (id) => { for (const resolver of options) { const { find, replacement } = resolver; if (id.match(find)) id = replacement; } return id; }; } export { defineConfig, externals, resolvePaths };