Closed SoloJiang closed 3 years ago
Rax Core entry strategy is not clear enough: https://unpkg.com/rax@1.2.0/index.js
As you see, it will return ./dist/rax.min.js in production, and return ./lib/index.js in development.
./dist/rax.min.js
./lib/index.js
Another difference is that, lib result will add __esmodule = true flag, but dist result not. It will be wrong in this case:
__esmodule = true
https://github.com/alibaba/rax/issues/2217
Rax Core entry strategy is not clear enough: https://unpkg.com/rax@1.2.0/index.js
As you see, it will return
./dist/rax.min.js
in production, and return./lib/index.js
in development.Another difference is that, lib result will add
__esmodule = true
flag, but dist result not. It will be wrong in this case: