title | issue | author | author_email | author_github |
---|---|---|---|---|
Add Shopware as an external to the webpack configuration |
NEXT-16380 |
Jannis Leifeld |
Jannis Leifeld |
- Added
Shopware
to theexternals
in the webpack configuration. This allows to import Shopware (e.g.import { Module } from 'Shopware'
) instead of using the global Shopware object (e.g.const { Module } = Shopware
). When plugins are using this they need to addShopware
to the "paths" in theirjsconfig.json
which redirect dosrc/core/shopware
. It could also lead to an ESLint failure ofimport/order
because the import have to placed before the local imports. Then you need to move the import to the top.