@parcel/transformer-less 2.0.0-nightly.1253 → 2.0.0-nightly.1255

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.
@@ -205,7 +205,9 @@ function resolvePathPlugin({
205
205
  }
206
206
 
207
207
  if (!contents) {
208
- filePath = await resolve(asset.filePath, filename);
208
+ filePath = await resolve(asset.filePath, filename, {
209
+ packageConditions: ['less', 'style']
210
+ });
209
211
  contents = await asset.fs.readFile(filePath, 'utf8');
210
212
  }
211
213
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcel/transformer-less",
3
- "version": "2.0.0-nightly.1253+1e1d01df1",
3
+ "version": "2.0.0-nightly.1255+359f6bbba",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -17,12 +17,12 @@
17
17
  "source": "src/LessTransformer.js",
18
18
  "engines": {
19
19
  "node": ">= 12.0.0",
20
- "parcel": "2.0.0-nightly.1251+1e1d01df1"
20
+ "parcel": "2.0.0-nightly.1253+359f6bbba"
21
21
  },
22
22
  "dependencies": {
23
- "@parcel/plugin": "2.0.0-nightly.1253+1e1d01df1",
23
+ "@parcel/plugin": "2.0.0-nightly.1255+359f6bbba",
24
24
  "@parcel/source-map": "^2.1.1",
25
25
  "less": "^4.1.1"
26
26
  },
27
- "gitHead": "1e1d01df1638bc534785eda86116a6696b0d0cc5"
27
+ "gitHead": "359f6bbba0739c3872ee82ea4984c93adaf4da47"
28
28
  }
@@ -152,7 +152,9 @@ function resolvePathPlugin({asset, resolve}) {
152
152
  }
153
153
 
154
154
  if (!contents) {
155
- filePath = await resolve(asset.filePath, filename);
155
+ filePath = await resolve(asset.filePath, filename, {
156
+ packageConditions: ['less', 'style'],
157
+ });
156
158
  contents = await asset.fs.readFile(filePath, 'utf8');
157
159
  }
158
160