tungsten 0.1.53 → 0.1.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BabelTransformCssImport.d.ts","sourceRoot":"","sources":["../../src/babelPlugins/BabelTransformCssImport.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAc,MAAM,iBAAiB,CAAA;AAE7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAIjD,KAAK,IAAI,GAAG;IACR,UAAU,EAAE,MAAM,CAAA;CACrB,CAAA;AACD,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,IAAI,WACH,KAAK;iBAKtB,UAAU;;kCAIO,QAAQ,CAAC,iBAAiB,CAAC;;
|
|
1
|
+
{"version":3,"file":"BabelTransformCssImport.d.ts","sourceRoot":"","sources":["../../src/babelPlugins/BabelTransformCssImport.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAc,MAAM,iBAAiB,CAAA;AAE7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAIjD,KAAK,IAAI,GAAG;IACR,UAAU,EAAE,MAAM,CAAA;CACrB,CAAA;AACD,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,IAAI,WACH,KAAK;iBAKtB,UAAU;;kCAIO,QAAQ,CAAC,iBAAiB,CAAC;;EA2E7E"}
|
|
@@ -34,6 +34,10 @@ export function MakeBabelTransformCssImport(opts) {
|
|
|
34
34
|
//console.log('location without dot', location.slice(1))
|
|
35
35
|
location = fileRelDir + location.slice(1); // remove .
|
|
36
36
|
//console.log('new location', location)
|
|
37
|
+
} else if (location.startsWith('../')) {
|
|
38
|
+
let fileRelDir = slash(dirname(filename.slice(opts.absCodeDir.length)));
|
|
39
|
+
if (fileRelDir === '/') fileRelDir = '';
|
|
40
|
+
location = fileRelDir + '/' + location;
|
|
37
41
|
}
|
|
38
42
|
const varName = path.node.specifiers[0].local.name;
|
|
39
43
|
const locationWithCssExt = location.slice(0, location.lastIndexOf('.')) + '.css';
|