@navita/engine
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -14,2 +14,3 @@ import { StyleRule, FontFaceRule, CSSKeyframes } from '@navita/types'; | ||
type Options = { | ||
context?: string; | ||
enableSourceMaps?: boolean; | ||
@@ -16,0 +17,0 @@ enableDebugIdentifiers?: boolean; |
10
index.js
@@ -157,3 +157,4 @@ 'use strict'; | ||
const sourceMap$1 = new sourceMap.SourceMapGenerator({ | ||
file: "navita.css" | ||
file: "navita.css", | ||
skipValidation: true | ||
}); | ||
@@ -756,6 +757,7 @@ const references = entries.flatMap(([filePath, references])=>references.map((reference)=>({ | ||
const selector = '.' + classList.toString().split(' ').concat(extraClass).filter(Boolean).join('.'); | ||
if (index === 0 || !this.sourceMapReferences[filePath]) { | ||
this.sourceMapReferences[filePath] = []; | ||
const newFilePath = path.relative(this.options.context || process.cwd(), filePath); | ||
if (index === 0 || !this.sourceMapReferences[newFilePath]) { | ||
this.sourceMapReferences[newFilePath] = []; | ||
} | ||
this.sourceMapReferences[filePath][index] = { | ||
this.sourceMapReferences[newFilePath][index] = { | ||
selector, | ||
@@ -762,0 +764,0 @@ line, |
{ | ||
"name": "@navita/engine", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "Navitas CSS-in-JS engine", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
61845
1733