babel-plugin-vasille 0.99.4 → 0.99.5

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.
@@ -109,9 +109,11 @@ export function trProgram(path, devMode) {
109
109
  if (stylesConnected) {
110
110
  findStyleInNode(statementPath, internal);
111
111
  }
112
- return;
112
+ else {
113
+ return;
114
+ }
113
115
  }
114
- if (!stylesConnected || !findStyleInNode(statementPath, internal)) {
116
+ else if (!stylesConnected || !findStyleInNode(statementPath, internal)) {
115
117
  meshStatement(statementPath, internal);
116
118
  }
117
119
  }
@@ -124,7 +126,6 @@ export function trProgram(path, devMode) {
124
126
  if (t.isImportSpecifier(item) && t.isIdentifier(item.local)) {
125
127
  return statementPath.scope.bindings[item.local.name].referenced;
126
128
  }
127
- return true;
128
129
  }),
129
130
  t.importSpecifier(internal.id, t.identifier("$")),
130
131
  ], statement.source));
@@ -135,9 +135,11 @@ function trProgram(path, devMode) {
135
135
  if (stylesConnected) {
136
136
  (0, css_transformer_1.findStyleInNode)(statementPath, internal);
137
137
  }
138
- return;
138
+ else {
139
+ return;
140
+ }
139
141
  }
140
- if (!stylesConnected || !(0, css_transformer_1.findStyleInNode)(statementPath, internal)) {
142
+ else if (!stylesConnected || !(0, css_transformer_1.findStyleInNode)(statementPath, internal)) {
141
143
  (0, mesh_1.meshStatement)(statementPath, internal);
142
144
  }
143
145
  }
@@ -150,7 +152,6 @@ function trProgram(path, devMode) {
150
152
  if (t.isImportSpecifier(item) && t.isIdentifier(item.local)) {
151
153
  return statementPath.scope.bindings[item.local.name].referenced;
152
154
  }
153
- return true;
154
155
  }),
155
156
  t.importSpecifier(internal.id, t.identifier("$")),
156
157
  ], statement.source));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babel-plugin-vasille",
3
- "version": "0.99.4",
3
+ "version": "0.99.5",
4
4
  "description": "Convert Vasille Meta Language code to pure JavaScript",
5
5
  "main": "lib-node/index.js",
6
6
  "type": "commonjs",