react-loadable icon indicating copy to clipboard operation
react-loadable copied to clipboard

add judgment on vite packaging results

Open ysy945 opened this issue 2 years ago • 0 comments

"React. CreateElement: type is invalid..." error will appear when using "vite" to package the react project The module obtained by using “import("xxx").then (module = > console.log (module))“ syntax in vite will be marked as "symbol (symbol. Tostringtag)": "module" The judgment in the 'resolve' function is "__esmodule: true", so the packaged user of "vite" should add the judgment after "vite" packaging, otherwise the packaged user of "vite" will not be able to use

ysy945 avatar Aug 07 '22 15:08 ysy945