Skip to content

Commit

Permalink
point sandbox imports at cedar.mjs rather than ESM lib bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
cowills committed Jun 24, 2020
1 parent 386c4cc commit 095cabf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/buildSandbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function buildContent(data, model, fontImport) {
}

function buildScriptTag(data, model) {
const componentsImport = `import { ${data.components} } from "@rei/cedar";`;
const componentsImport = `import { ${data.components} } from "@rei/cedar/dist/cedar.mjs"; // NOTE: importing from '@rei/cedar/dist/cedar.mjs' to bypass a codesandbox bug. Please import from '@rei/cedar' in your code.`;

return `
${data.components ? componentsImport : ''}
Expand Down

0 comments on commit 095cabf

Please sign in to comment.