mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 01:38:34 +08:00
e330a596f5
Some plugins store their connectors under `{plugin}/assets/javascripts/templates/connectors`, which is read as `templates/connectors` relative to the base of the JS directory. Our connector checking logic was looking for strings including the leading slash (`/templates`), which not be the case here. Instead we can split on `/` and take the last element. This matches the logic we have for themes in https://github.com/discourse/discourse/blob/1dadf4381f/lib/theme_javascript_compiler.rb#L111 This wasn't actually breaking anything, so this is just a housekeeping commit. |
||
---|---|---|
.. | ||
colocated-template-compiler.js | ||
index.js | ||
package.json |