Include a11y_autocomplete_widget and JS dependency using foxy/vite method from #frontend_bundler_initiative
Closes #3472824
Merge request reports
Activity
11 11 done 12 12 13 13 composer config repositories.drupal composer https://packages.drupal.org/8 14 15 # Temporary command to fetch foxy-compatible a11y_autocomplete_element module 16 # while integration under development. 17 composer config repositories.drupal/a11y_autocomplete_element '{"type": "git", "url": "https://git.drupalcode.org/issue/a11y_autocomplete_element-3472705.git"}' Ah, I see what you mean. Yeah, if
composer.json
itself needs to be patched, then the only thing we could do here is have the change committed upstream before we could add this to Drupal CMS, sadly. We cannot rely on issue fork repositories because they would only apply to a local Drupal CMS development set-up, rather than "real" projects.Edited by Adam G-H
1 web_root: web This is troublesome. If the web root ever changes, or just is different, this won't work.
Also, recipes can't override simple config like this. This would need to be done as a
simpleConfigUpdate
config action.I think this is also a clear case where the recipe system would need to provide the web root dynamically - that would necessitate core changes, which we could certainly do with a patch.
changed this line in version 4 of the diff
- Resolved by Adam G-H
- Resolved by Adam G-H
added 1 commit
- a6490641 - Ignore vite config when it is copied to project root.
- project_template/vite.config.mjs 0 → 100644
1 import { defineConfig } from 'vite' We would be locking users into using vite over other bundlers with this combined with the composer.json post-update/install scripts. I think it would be better to let people opt in to this stuff and edit it later, foxy supports yarn and bun for example. I'm just not sure how to go about it, this whole MR is a launching point, not the end product