You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To use the Magento drivers, you need to import and configure the appropriate modules and services in your Angular application.
13
+
To use the Magento drivers, you need to import and configure the appropriate modules and services in your Angular application, and set your Magento version in `angular.json`.
14
14
15
15
Magento's GraphQl API has changed with its various versions, with the most recent versions of Magento supporting the `routes` GraphQl query.
16
16
17
-
As such, most recent versions of Magento should use the driver version which first introduced support for this: `DaffExternalRouterDriverMagentoModule` from `@daffodil/external-router/driver/magento/2.4.3`.
17
+
As such, most recent versions of Magento should use the driver version which first introduced support for this: `v2.4.3`
18
18
19
-
| Magento Version | Module | Package | SEO Data Support |
When you upgrade Magento, only `angular.json` need to change — `app.config.ts` stays the same.
77
+
78
+
## Tree-shaking
79
+
80
+
The `conditions` approach means the bundler resolves `@daffodil/external-router/driver/magento` to exactly one version bundle. The other version bundles are never imported and are not included in the final output.
If you are not using Angular CLI (esbuild), you can import `provideDaffExternalRouterMagentoDriver` and `DaffExternalRouterMagentoDriver` directly from the version-specific sub-package. This also guarantees tree-shaking:
0 commit comments