Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Commit

Permalink
fix(docz-utils): add missing dependency for codesandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Dec 19, 2018
1 parent 1d72539 commit 3a51066
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/docz-utils/src/codesandbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const checkCodeToRender = (code: string) => {

const wrapCode = (code: string): string =>
`import React from 'react';
import { jsx } from '@emotion/core'
const doczStyles = {
margin: '0 3px',
Expand Down Expand Up @@ -56,16 +57,22 @@ function getSandboxFiles(
contents: rawCode,
extensions: [
'.js',
'.ts',
'.jsx',
'.ts',
'.tsx',
'.md',
'.html',
'.htm',
'.css',
'.css.less',
'.css.sass',
'.less',
'.sass',
'.scss',
'.svg',
'.png',
'.jpg',
'.jpeg',
],
})
}
Expand Down

0 comments on commit 3a51066

Please sign in to comment.