balm-core 3.33.2 → 3.33.3
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/plugins/sass.js +1 -1
- package/package.json +2 -2
- package/tslib/plugins/sass.js +1 -1
package/lib/plugins/sass.js
CHANGED
|
@@ -126,7 +126,7 @@ var gulpSass = function gulpSass(options) {
|
|
|
126
126
|
// Create alias
|
|
127
127
|
if (!opts.importer) {
|
|
128
128
|
var aliasKeys = Object.keys(BalmJS.config.scripts.alias).filter(function (key) {
|
|
129
|
-
return
|
|
129
|
+
return /^@[a-z0-9-]{1,213}/.test(key);
|
|
130
130
|
});
|
|
131
131
|
if (aliasKeys.length) {
|
|
132
132
|
var aliasKeyRegex = new RegExp("^".concat(aliasKeys.join('|')));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "balm-core",
|
|
3
|
-
"version": "3.33.
|
|
3
|
+
"version": "3.33.3",
|
|
4
4
|
"description": "BalmJS compiler core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"balm",
|
|
@@ -119,5 +119,5 @@
|
|
|
119
119
|
"engines": {
|
|
120
120
|
"node": ">=10.13.0"
|
|
121
121
|
},
|
|
122
|
-
"gitHead": "
|
|
122
|
+
"gitHead": "c63f9845f35b36a095a5dea1c18baed22ee6409c"
|
|
123
123
|
}
|
package/tslib/plugins/sass.js
CHANGED
|
@@ -78,7 +78,7 @@ const gulpSass = (options) => transformObj((file, encoding, callback) => {
|
|
|
78
78
|
opts.sourceMapContents = true;
|
|
79
79
|
}
|
|
80
80
|
if (!opts.importer) {
|
|
81
|
-
const aliasKeys = Object.keys(BalmJS.config.scripts.alias).filter((key) =>
|
|
81
|
+
const aliasKeys = Object.keys(BalmJS.config.scripts.alias).filter((key) => /^@[a-z0-9-]{1,213}/.test(key));
|
|
82
82
|
if (aliasKeys.length) {
|
|
83
83
|
const aliasKeyRegex = new RegExp(`^${aliasKeys.join('|')}`);
|
|
84
84
|
opts.importer = [
|