mirror of
https://github.com/bobwen-dev/react-templates
synced 2025-04-12 00:56:39 +02:00
Set objects to be imported
This commit is contained in:
parent
691e008c3e
commit
0fd6ea5045
@ -442,8 +442,8 @@ function convertRT(html, reportContext, options) {
|
|||||||
var reactPath = options.reactImportPath || 'react/addons';
|
var reactPath = options.reactImportPath || 'react/addons';
|
||||||
var lodashPath = options.lodashImportPath || 'lodash';
|
var lodashPath = options.lodashImportPath || 'lodash';
|
||||||
var defaultDefines = {};
|
var defaultDefines = {};
|
||||||
defaultDefines[reactPath] = 'react';
|
defaultDefines[reactPath] = 'React';
|
||||||
defaultDefines[lodashPath] = 'lodash';
|
defaultDefines[lodashPath] = '_';
|
||||||
|
|
||||||
var defines = options.defines ? _.clone(options.defines) : defaultDefines;
|
var defines = options.defines ? _.clone(options.defines) : defaultDefines;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user