Skip to content

Commit

Permalink
Merge pull request #709 from rei/fix-sandboxii
Browse files Browse the repository at this point in the history
fix cdr-tokens import in sandbox
  • Loading branch information
cowills authored Jun 24, 2020
2 parents 1cdc65e + 095cabf commit c4fb6ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/buildSandbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function makeMeASandbox(data, model) {
// TODO: can we grab the preceding text to use for description?
"description": "https://rei.github.io/rei-cedar-docs/",
"dependencies": {
"@rei/cdr-tokens": packageJson.devDependencies['@rei/cdr-tokens'],
"@rei/cdr-tokens": packageJson.dependencies['@rei/cdr-tokens'],
"@rei/cedar": packageJson.dependencies['@rei/cedar'],
"vue": "^2.5.22"
}
Expand Down 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 c4fb6ee

Please sign in to comment.