package.json
field scandipwa.type
equal to extension
. For example:@namespace
magic comments must have a scandipwa
block declared in its package.json file. Otherwise, the @namespace
magic comments will not be handled correctly during the build time, hence will not work.scandipwa.extensions
object of package.json
. The extension must be a valid NPM package, therefore you are required to add it into dependencies
field of your package.json
. Like so:packages
folder and register it in your current theme. It will be symlinked from packages
to proper folder under node_modules
.true
or false
as a value of the extension key in scandipwa.extensions
. Your theme can control enabled extensions across the whole application. This allows to disable the previously enabled extension. The sequence of preference in this case is: