Open coderbuzz opened 2 years ago
If using tsx, import m from "mithril";
import m from "mithril";
caused: 'm' is declared but its value is never read.
'm' is declared but its value is never read.
This can be solved using
jsxInject: "import m from 'mithril';"
in esbuild config:
esbuild: { jsx: "transform", jsxFactory: "m", jsxFragment: "'['", jsxInject: "import m from 'mithril';" },
If using tsx,
import m from "mithril";
caused:
'm' is declared but its value is never read.