@stylable/core
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -574,3 +574,7 @@ "use strict"; | ||
importObj.fromRelative = importPath; | ||
importObj.from = path_1.default.resolve(path_1.default.dirname(this.meta.source), importPath); | ||
const dirPath = path_1.default.dirname(this.meta.source); | ||
importObj.from = | ||
path_1.default.posix && path_1.default.posix.isAbsolute(dirPath) // browser has no posix methods | ||
? path_1.default.posix.join(dirPath, importPath) | ||
: path_1.default.join(dirPath, importPath); | ||
} | ||
@@ -577,0 +581,0 @@ fromExists = true; |
@@ -276,3 +276,3 @@ "use strict"; | ||
} | ||
return source ? path_1.resolve(source) : source; | ||
return source; | ||
} | ||
@@ -279,0 +279,0 @@ exports.getSourcePath = getSourcePath; |
{ | ||
"name": "@stylable/core", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "CSS for Components", | ||
@@ -23,3 +23,3 @@ "main": "./cjs/index.js", | ||
"murmurhash": "^0.0.2", | ||
"postcss": "^7.0.24", | ||
"postcss": "^7.0.25", | ||
"postcss-js": "^2.0.3", | ||
@@ -48,3 +48,3 @@ "postcss-nested": "^4.2.1", | ||
"license": "BSD-3-Clause", | ||
"gitHead": "91b92e8380ec81e5ad6ae4d96625f8d9e972c50d" | ||
"gitHead": "8a4adb3f4741359c5c9ae4f0b9a1195a78251338" | ||
} |
@@ -680,3 +680,7 @@ import hash from 'murmurhash'; | ||
importObj.fromRelative = importPath; | ||
importObj.from = path.resolve(path.dirname(this.meta.source), importPath); | ||
const dirPath = path.dirname(this.meta.source); | ||
importObj.from = | ||
path.posix && path.posix.isAbsolute(dirPath) // browser has no posix methods | ||
? path.posix.join(dirPath, importPath) | ||
: path.join(dirPath, importPath); | ||
} | ||
@@ -683,0 +687,0 @@ fromExists = true; |
import cloneDeep from 'lodash.clonedeep'; | ||
import { isAbsolute, resolve } from 'path'; | ||
import { isAbsolute } from 'path'; | ||
import postcss from 'postcss'; | ||
@@ -343,3 +343,3 @@ import { Diagnostics } from './diagnostics'; | ||
} | ||
return source ? resolve(source) : source; | ||
return source; | ||
} | ||
@@ -346,0 +346,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
649490
11241
Updatedpostcss@^7.0.25