Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function heading(filePath) {
let relativePath = path.relative(conf.root, filePath);
relativePath = relativePath.replace(/^test\//, '');
relativePath = relativePath.replace(/\.es6$/, '');
return relativePath;
}
import React from 'react'
import { render } from 'react'
import { createBrowserHistory } from 'history'
import { StyleSheet } from 'aphrodite'
import routerMiddleware from 'route/middleware'
import Root from 'main/containers/root'
import configureStore from 'main/store/configureStore'
let initialState = {}
import conf from 'conf'
let history = createBrowserHistory(conf.root ? { basename: conf.root } : {})
const store = configureStore(initialState, routerMiddleware(history))
render(
,
document.getElementById('app-mount'),
document.getElementById('app-mount').firstElementChild
)