ts-import-plugin
Advanced tools
Comparing version 1.1.2 to 1.2.0
@@ -8,2 +8,3 @@ import * as ts from 'typescript'; | ||
camel2UnderlineComponentName?: boolean; | ||
styleExt?: string; | ||
} | ||
@@ -10,0 +11,0 @@ export interface ImportedStruct { |
@@ -60,4 +60,4 @@ "use strict"; | ||
if (options.style) { | ||
var style = options.style; | ||
var styleNode = ts.createImportDeclaration(undefined, undefined, undefined, ts.createLiteral(libraryName + "/lib/" + importName + "/style/" + (style === 'css' ? 'css' : 'index') + ".js")); | ||
var style = options.style, styleExt = options.styleExt; | ||
var styleNode = ts.createImportDeclaration(undefined, undefined, undefined, ts.createLiteral(libraryName + "/lib/" + importName + "/style/" + (style === 'css' ? (styleExt ? styleExt : 'css') : 'index') + ".js")); | ||
astNodes.push(styleNode); | ||
@@ -64,0 +64,0 @@ } |
{ | ||
"name": "ts-import-plugin", | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"description": "babel-plugin-import TypeScript version", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13993
121