@atlaspack/transformer-less 2.12.1-dev.3368 → 2.12.1-dev.3401
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/lib/LessTransformer.js +1 -1
- package/package.json +4 -4
- package/src/LessTransformer.js +1 -1
package/lib/LessTransformer.js
CHANGED
|
@@ -133,7 +133,7 @@ function resolvePathPlugin({
|
|
|
133
133
|
let filename = rawFilename;
|
|
134
134
|
if (WEBPACK_ALIAS_RE.test(filename)) {
|
|
135
135
|
let correctPath = filename.replace(/^~/, '');
|
|
136
|
-
throw new Error(`The @import path "${filename}" is using webpack specific syntax, which isn't supported by
|
|
136
|
+
throw new Error(`The @import path "${filename}" is using webpack specific syntax, which isn't supported by Parcel.\n\nTo @import files from node_modules, use "${correctPath}"`);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
// Based on https://github.com/less/less.js/blob/master/packages/less/src/less-node/file-manager.js
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/transformer-less",
|
|
3
|
-
"version": "2.12.1-dev.
|
|
3
|
+
"version": "2.12.1-dev.3401+b483af77f",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"source": "src/LessTransformer.js",
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": ">= 16.0.0",
|
|
16
|
-
"
|
|
16
|
+
"parcel": "^2.12.1-dev.3401+b483af77f"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@atlaspack/plugin": "2.12.1-dev.
|
|
19
|
+
"@atlaspack/plugin": "2.12.1-dev.3401+b483af77f",
|
|
20
20
|
"@parcel/source-map": "^2.1.1",
|
|
21
21
|
"less": "^4.1.1"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "b483af77f02d1258c8dad156e097b94f83671d8e"
|
|
24
24
|
}
|
package/src/LessTransformer.js
CHANGED
|
@@ -113,7 +113,7 @@ function resolvePathPlugin({asset, resolve}) {
|
|
|
113
113
|
if (WEBPACK_ALIAS_RE.test(filename)) {
|
|
114
114
|
let correctPath = filename.replace(/^~/, '');
|
|
115
115
|
throw new Error(
|
|
116
|
-
`The @import path "${filename}" is using webpack specific syntax, which isn't supported by
|
|
116
|
+
`The @import path "${filename}" is using webpack specific syntax, which isn't supported by Parcel.\n\nTo @import files from node_modules, use "${correctPath}"`,
|
|
117
117
|
);
|
|
118
118
|
}
|
|
119
119
|
|