Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// Public imports, needed for ReactPlayground code samples to work
import * as modReact from 'react'
import * as modReactDOM from 'react-dom'
import * as modUIkitReact from 'uikit-react'
import babel from 'babel-core/browser'
import CodeMirror from 'codemirror'
const React = modReact.default
const ReactDOM = modReactDOM.default
const UIkitReact = modUIkitReact.default
// Private imports
// TODO actually recognize syntax of TypeScript constructs
CodeMirror.defineMode('javascript', function (config, parserConfig) {
var indentUnit = config.indentUnit
var jsonMode = parserConfig.json
var isTS = parserConfig.typescript
// Tokenizer
var keywords = function () {
function kw(type) { return { type: type, style: 'keyword' } }
var A = kw('keyword a'), B = kw('keyword b'), C = kw('keyword c')