Skip to content

Commit

Permalink
fix(rn): react native .rn.tsx 独立组件样式文件编译引入出错 close NervJS#2846
Browse files Browse the repository at this point in the history
  • Loading branch information
Pines-Cheng committed Apr 22, 2019
1 parent 0d80849 commit bb14ff0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ function ${GET_STYLE_FUNC_NAME}(classNameExpression) {
if (cssFileCount === 0) {
const cssFileBaseName = path.basename(jsFilePath, path.extname(jsFilePath))
// 引入样式对应的变量名
const styleSheetIdentifierValue = `${cssFileBaseName.replace(/-/g, '_') + NAME_SUFFIX}`
const styleSheetIdentifierValue = `${cssFileBaseName.replace(/[-.]/g, '_') + NAME_SUFFIX}`
const styleSheetIdentifierPath = `./${cssFileBaseName}_styles`
const styleSheetIdentifier = t.identifier(styleSheetIdentifierValue)

Expand Down

0 comments on commit bb14ff0

Please sign in to comment.