import AutoPilot from "https://deno.land/x/autopilot/mod.ts";
const pilot = new AutoPilot();
Run this:
deno run -A --unstable test.js
Output should be nothing, everything's fine. Now run this:
deno bundle --unstable test.js test.bundle.js
And then this:
deno run -A --unstable test.bundle.js
Output will be:
error: Uncaught SyntaxError: Identifier 'path1' has already been declared
function path1(url, ns) {
^
at <anonymous> (file:///path/to/test.bundle.js:1723:1)
Create the file
test.js
with:Run this:
Output should be nothing, everything's fine. Now run this:
And then this:
Output will be: