Speech as a package #416

Merged
bones7242 merged 89 commits from speech-as-a-package into master 2018-04-18 21:47:34 +02:00
3 changed files with 2214 additions and 2004 deletions
Showing only changes of commit c191b7c2bd - Show all commits

View file

@ -9,7 +9,7 @@ function getDeepestChildValue (parent, childrenKeys) {
return child;
}
const dynamicImport = (filePath) => {
export const dynamicImport = (filePath) => {
// validate inputs
if (!filePath) {
throw new Error('no file path provided to dynamicImport()');
@ -25,8 +25,6 @@ const dynamicImport = (filePath) => {
if (customComponent) {
return customComponent; // return custom component
} else {
return require(filePath); // return default component
return require(`${filePath}`);
}
};
export default dynamicImport;

1486
index.js

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long