diff --git a/rollup.config.js b/rollup.config.js index 4336670c..dc41722b 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -43,27 +43,30 @@ const tests = [ ]; function surpressWarnings(message, warn) { - if (message.code === "CIRCULAR_DEPENDENCY") return; - warn(message); + if (message.code === "CIRCULAR_DEPENDENCY") return; + warn(message); } export default [ - { - input: "lib/main.js", - external: [...externals], - output: { - file: "dist/main.cjs", - format: "cjs", - }, - onwarn: surpressWarnings, - }, - { - input: [...tests], - external: [...externals,...devExternals], - output: { - dir: "test/dist/", - format: "cjs", - }, - onwarn: surpressWarnings, - }, -]; \ No newline at end of file + { + input: "lib/main.js", + external: [...externals], + output: { + file: "dist/main.cjs", + format: "cjs", + paths: { + 'punycode': 'punycode/', + } + }, + onwarn: surpressWarnings, + }, + { + input: [...tests], + external: [...externals,...devExternals], + output: { + dir: "test/dist/", + format: "cjs", + }, + onwarn: surpressWarnings, + }, +];