ts-import-plugin
Advanced tools
Comparing version 1.5.4 to 1.5.5
@@ -98,4 +98,6 @@ "use strict"; | ||
var stylePath = typeof style === 'function' ? style(importPath) : importPath + "/style/" + (style === true ? 'index' : style) + ".js"; | ||
var styleNode = ts.createImportDeclaration(undefined, undefined, undefined, ts.createLiteral(stylePath)); | ||
astNodes.push(styleNode); | ||
if (stylePath) { | ||
var styleNode = ts.createImportDeclaration(undefined, undefined, undefined, ts.createLiteral(stylePath)); | ||
astNodes.push(styleNode); | ||
} | ||
} | ||
@@ -102,0 +104,0 @@ // tslint:disable-next-line:no-empty |
{ | ||
"name": "ts-import-plugin", | ||
"version": "1.5.4", | ||
"version": "1.5.5", | ||
"description": "babel-plugin-import TypeScript version", | ||
@@ -43,3 +43,3 @@ "main": "index.js", | ||
"coveralls": "^3.0.1", | ||
"css-loader": "^0.28.11", | ||
"css-loader": "^1.0.0", | ||
"husky": "^0.14.3", | ||
@@ -56,3 +56,3 @@ "lint-staged": "^7.1.3", | ||
"rxjs": "^6.2.0", | ||
"style-loader": "^0.21.0", | ||
"style-loader": "^0.23.0", | ||
"ts-loader": "^4.3.1", | ||
@@ -59,0 +59,0 @@ "ts-node": "^7.0.0", |
Sorry, the diff of this file is not supported yet
20329
168