It is not currently possible to define global classes as named exports when using css modules.
Defining global classes requires wrapping the default export in a :global scope block.
exportdefault{':global': {'.app': { ... },},};A global flag on the module or on each class would be parsed by the loader and the global scope would be created automatically.
On the module:
exportconst_global=true;exportconstapp={ ... };On the class:
exportconstapp={_global: true,
...
};Or as scope:
exportconst_scope='global';exportconstapp={ ... };exportconstapp={_scope: `global`,
...
};
It is not currently possible to define global classes as named exports when using css modules.
Defining global classes requires wrapping the default export in a
:globalscope block.A
globalflag on the module or on each class would be parsed by the loader and the global scope would be created automatically.On the module:
On the class:
Or as
scope: