Add version to module imports
We're already adding the ?v={version}
query parameter in the HTML:
<link href="/static/translucent/assets/themes/hawkeye.css?v=0.7.0" rel="stylesheet"/>
<script src="/static/translucent/translucent.js?v=0.7.0" type="module"></script>
This is fine, but within translucent.js
, there are also module imports:
// …
import CBreadcrumbComponent from './components/c_breadcrumb.js'
import CButtonComponent from './components/c_button.js'
import CCardComponent from './components/c_card.js'
import CCardGridComponent from './components/c_card_grid.js'
import CCheckboxComponent from './components/c_checkbox.js'
import CFormComponent from './components/c_form.js'
import CHeadingComponent from './components/c_heading.js'
// …
We should also render the version to these imports during the build / Jinja rendering.