theprogrammablemind_4wp 7.5.8-beta.85 → 7.5.8-beta.87
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/config.js +14 -7
package/package.json
CHANGED
package/src/config.js
CHANGED
@@ -988,28 +988,35 @@ class Config {
|
|
988
988
|
delete config.where
|
989
989
|
if (options.isModule) {
|
990
990
|
// things like webpack rewrite the functions if there are constants so this compare does not work
|
991
|
-
delete config.generators
|
992
|
-
delete config.semantics
|
991
|
+
delete config.generators;
|
992
|
+
delete config.semantics;
|
993
|
+
(config.bridges || []).forEach((bridge) => {
|
994
|
+
delete bridge.generatorp
|
995
|
+
delete bridge.generatorr
|
996
|
+
delete bridge.generatorpr
|
997
|
+
delete bridge.evaluator
|
998
|
+
delete bridge.semantic
|
999
|
+
});
|
993
1000
|
} else {
|
994
1001
|
config.generators = (config.generators || []).map((generator) => {
|
995
1002
|
generator = {...generator}
|
996
1003
|
delete generator.where
|
997
|
-
generator.match = generator.match.toString()
|
998
|
-
generator.apply = generator.apply.toString()
|
1004
|
+
generator.match = generator.match.toString()
|
1005
|
+
generator.apply = generator.apply.toString()
|
999
1006
|
return generator
|
1000
1007
|
})
|
1001
1008
|
config.semantics = (config.semantics || []).map((semantic) => {
|
1002
1009
|
semantic = {...semantic}
|
1003
1010
|
delete semantic.where
|
1004
|
-
semantic.match = semantic.match.toString()
|
1005
|
-
semantic.apply = semantic.apply.toString()
|
1011
|
+
semantic.match = semantic.match.toString()
|
1012
|
+
semantic.apply = semantic.apply.toString()
|
1006
1013
|
return semantic
|
1007
1014
|
})
|
1008
1015
|
config.bridges = (config.bridges || []).map((bridge) => {
|
1009
1016
|
bridge = {...bridge}
|
1010
1017
|
delete bridge.where
|
1011
1018
|
if (bridge.generatorp) {
|
1012
|
-
bridge.generatorp = bridge.generatorp.toString()
|
1019
|
+
bridge.generatorp = bridge.generatorp.toString()
|
1013
1020
|
}
|
1014
1021
|
if (bridge.generatorr) {
|
1015
1022
|
bridge.generatorr = bridge.generatorr.toString()
|