-
Notifications
You must be signed in to change notification settings - Fork 595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PRO-6775: External frontend support, docs cleanup #4799
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please stabilize eslint-config-apostrophe in that module, not here
@@ -98,6 +98,10 @@ module.exports = { | |||
// Force the HMR WS port when it operates on the same process as Apostrophe. | |||
// Most of the time you won't need to change this. | |||
hmrPort: null, | |||
// Let the external build module inject a pollyfill for the module preload, | |||
// adding the `modulepreload` support for the browsers that don't support it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What browsers don't support it? Curious.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's widely supported now. But I'm just following the Vite standards and defaults: https://vite.dev/config/build-options.html#build-polyfillmodulepreload
* main: fix vue warnings (#4797) Pro 6694 breakpoint preview vite ready (#4789) Resolve yaml dependency conflicts (#4801) PRO-6775: External frontend support, docs cleanup (#4799) sort glob result (#4796) HMR condition argument and widget player fix (#4794) fix permission grid tooltip display (#4792) Fix extra bundle detection (#4791) release 4.9.0 (#4788) Pro 6535 revision (#4787)
* main: changelog (#4802) fixes modals deep selectors (#4795) fix vue warnings (#4797) Pro 6694 breakpoint preview vite ready (#4789) Resolve yaml dependency conflicts (#4801) PRO-6775: External frontend support, docs cleanup (#4799) sort glob result (#4796) HMR condition argument and widget player fix (#4794) fix permission grid tooltip display (#4792) Fix extra bundle detection (#4791) release 4.9.0 (#4788) Pro 6535 revision (#4787)
Summary
options.modulePreloadPolyfill
(defaulttrue
) to allow disabling the polyfill preload for e.g. external front-ends.bundleMarkup
to the data sent to the external front-end, containing all markup for injecting Apostrophe UI in the front-end.widges/module.js
) and dot-folders (e.g..DS_Store
).What are the specific steps to test this change?
External front-ends should work.
What kind of change does this PR introduce?
(Check at least one)
Make sure the PR fulfills these requirements:
If adding a new feature without an already open issue, it's best to open a feature request issue first and wait for approval before working on it.
Other information: