@memebattle/build-conditions-swc
v0.3.0
Published
SWC wasm plugin of @memebattle/build-conditions: inlines condition branches and removes dead code at build time
Readme
@memebattle/build-conditions-swc
The SWC wasm plugin of @memebattle/build-conditions:
it inlines the matching condition branch and removes the dead ones together
with their imports at build time.
{
jsc: {
experimental: {
plugins: [
[
require.resolve('@memebattle/build-conditions-swc'),
{
groups: { platform: ['desktop', 'mobile'], runtime: ['server', 'client'] },
conditions: { platform: 'desktop', runtime: 'client' },
},
],
],
},
},
}See the repository README for the full documentation.
