Closed deyihu closed 8 months ago
There's not browser requirement that javascript files end with a .js
extension - this is an issue with unpkg.com setting the returned content type to "text/plain" rather than "application/javascript" in the response headers. Please report it to them. Both .cjs and .mjs extensions are used fairly broadly to distinguish module-style js files and commonjs-style ones.
Describe the bug
umd package
Browser cannot recognize
.cjs
The browser will not run the scripts inside
To Reproduce
Code
Live example
-
Expected behavior
umd package Should use js as the extension
need update rollup config
Screenshots
If applicable, add screenshots to help explain your problem (drag and drop the image).
Platform: