Open shing-fp opened 3 years ago
here is an unminified version
https://codesandbox.io/s/eloquent-euclid-1l7yf
It seems that object-assign package is cjs and we need to add it to rollup.config.js to the commonjsOptions.include whitelist
cc @TrySound please correct me if I am wrong
I think object-assign landed in our umd bundle automatically by rollup, we don't have it explicitly as a dependency, that's why we also didn't add it to the whitelist
Rollup does not polyfill anything. Plugins could but you don't use such plugins.
React packages use object-assign
This is still an issue as of 10.9.1-alpha.2. Still getting an issue as a result of object-assign.
<script src="https://unpkg.com/react-jss@10.9.1-alpha.2/dist/react-jss.js" crossorigin></script>
I believe this is the package that is generating the error https://github.com/sindresorhus/object-assign
I am having the same issue <script src="https://unpkg.com/react-jss@10.10.0/dist/react-jss.js"></script>
any update ?
Expected behavior: I'm trying to implement
react-jss
via CDN. Importing the UMD build via<script>
tag should work out of the box.Describe the bug: The module does not load and the console generates the error as follows:
Reproduction:
CodeSandbox - loading
react
,react-dom
, andreact-jss
Versions: