binhend 2.1.22 → 2.1.23
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
CHANGED
|
@@ -31,7 +31,7 @@ function generate(sourceRootPath, outputRootPath, callbackDone) {
|
|
|
31
31
|
// not return here, but wait for next "if" statement to be copied to build folder, then return there.
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
if (fileExtension !== '.js') {
|
|
34
|
+
if (fileExtension !== '.js' && fileExtension !== '.mjs') {
|
|
35
35
|
// any files not JS (.css, .jpg, etc.) will be copied to build folder.
|
|
36
36
|
return cloneFileIfNew(fileSourcePath, fileOutputPath);
|
|
37
37
|
}
|
|
@@ -48,7 +48,7 @@ function generate(sourceRootPath, outputRootPath, callbackDone) {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
function mapConfigValues(content) {
|
|
51
|
-
var matches = content.matchAll(/{\/\*(
|
|
51
|
+
var matches = content.matchAll(/{\/\*(.*?)\*\/}/g); // match all terms wrapped in format: {/*TERM*/}
|
|
52
52
|
|
|
53
53
|
var map = {};
|
|
54
54
|
|