Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix cdr-tokens import in sandbox #709

Merged
merged 2 commits into from
Jun 24, 2020
Merged

fix cdr-tokens import in sandbox #709

merged 2 commits into from
Jun 24, 2020

Conversation

cowills
Copy link
Contributor

@cowills cowills commented Jun 24, 2020

noticed the sandboxes currently load with an error because the cdr-tokens dep disappeared, this will fix the CSS side of that error

there is another unrelated JS bug in codesandbox that causes a different cdr-tokens related error codesandbox/codesandbox-client#4456

seems like codesandbox might be excluding anything named "node_modules" from the bundle it creates, which excludes the mini copy of cdr-tokens that we bundle into our ESM:
Screen Shot 2020-06-24 at 10 30 15 AM

We can bypass that by forcing the sandbox to import from cedar.mjs which is the un-tree-shakeable ESM bundle, as that bundle simply inlines the cdrTokens:
Screen Shot 2020-06-24 at 10 50 26 AM

@cowills cowills requested a review from mhewson June 24, 2020 17:13
@cowills cowills closed this Jun 24, 2020
@cowills cowills reopened this Jun 24, 2020
@cowills cowills merged commit c4fb6ee into next Jun 24, 2020
@cowills cowills deleted the fix-sandboxii branch June 24, 2020 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants