vaderjs 1.3.3-alpha-88 → 1.3.3-alpha-90
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.
- package/package.json +1 -1
- package/vader.js +4 -2
package/package.json
CHANGED
package/vader.js
CHANGED
|
@@ -610,7 +610,7 @@ function Compiler(func, file) {
|
|
|
610
610
|
if (regularimportMatch) {
|
|
611
611
|
for (let match of regularimportMatch) {
|
|
612
612
|
let beforeimport = match
|
|
613
|
-
let path = match.split('from')[1].trim() || match
|
|
613
|
+
let path = match.split('from')[1].trim() || match.split('import')[1]
|
|
614
614
|
let newImport = ''
|
|
615
615
|
let name = match.split('import')[1].split('from')[0].trim()
|
|
616
616
|
|
|
@@ -633,8 +633,10 @@ function Compiler(func, file) {
|
|
|
633
633
|
newImport = `let ${name} = ${JSON.stringify(parse(css))}`
|
|
634
634
|
string = string.replace(beforeimport, newImport)
|
|
635
635
|
break;
|
|
636
|
-
case path && path.
|
|
636
|
+
case path && path.endsWith('.css'):
|
|
637
|
+
console.log(path)
|
|
637
638
|
string = string.replace(beforeimport, '')
|
|
639
|
+
newImport = ``
|
|
638
640
|
break;
|
|
639
641
|
default:
|
|
640
642
|
let beforePath = path
|