We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7f7fcc commit d39d6cbCopy full SHA for d39d6cb
src/main/java/org/webjars/RequireJS.java
@@ -135,7 +135,10 @@ public static String generateSetupJavaScript(@Nonnull Collection<String> prefixe
135
// default to the new pom.xml meta-data way
136
ObjectNode webJarObjectNode = getWebJarSetupJson(webJar, prefixesWithVersion);
137
if ((webJarObjectNode != null ? webJarObjectNode.size() : 0) == 0) {
138
- webJarConfigsString.append('\n').append(getWebJarConfig(webJar));
+ String legacyWebJarConfig = getWebJarConfig(webJar);
139
+ if (legacyWebJarConfig != null) {
140
+ webJarConfigsString.append('\n').append(legacyWebJarConfig);
141
+ }
142
} else {
143
requireJsConfigs.add(webJarObjectNode.toString());
144
}
0 commit comments