RA
rafaeldelboni/squint-require-bug-repro
squint require with dots bug repro
Squint require with dot bug repro
The following code:
(ns app.core
(:require [app.foo :as foo]
[app.foo.bar :as foo.bar]))Produces this error message on the browser:
Uncaught SyntaxError: redeclaration of const foocore.mjs:3:13note: Previously declared at line 2, column 13
Which is the result of producing the following mjs code:
import * as squint_core from "/@fs/home/delboni/Workspaces/clj/squint-require-bug-repro/node_modules/.vite/deps/squint-cljs_core__js.js?v=7b145cb1";
import * as foo from "/js/app/foo.mjs";
import * as foo.bar from "/js/app/foo/bar.mjs";Instructions
Bootstrap
npm installWatch on http://localhost:5173
npm startOn this page
Languages
HTML45.6%Clojure40.7%JavaScript13.6%
Contributors
Created June 18, 2025
Updated June 18, 2025