MCPcopy
hub / github.com/tailwindlabs/tailwindcss / loadModule

Function loadModule

packages/tailwindcss/src/variants.test.ts:2812–2826  ·  packages/tailwindcss/src/variants.test.ts::loadModule
(_id: string)

Source from the content-addressed store, hash-verified

2810 expect(
2811 await run(classList, class="st">'@tailwind utilities; @plugin "./plugin.js";', {
2812 async loadModule(_id: string) {
2813 return {
2814 path: class="st">'',
2815 base: class="st">'/',
2816 module: createPlugin(({ matchVariant }) => {
2817 matchVariant(class="st">'is-data', (value) => `&:is([data-${value}])`, {
2818 values: {
2819 DEFAULT: class="st">'default',
2820 foo: class="st">'foo',
2821 bar: class="st">'bar',
2822 },
2823 })
2824 }),
2825 }
2826 },
2827 }),
2828 ).toMatchInlineSnapshot(`
2829 "

Callers

nothing calls this directly

Calls 2

createPluginFunction · 0.85
matchVariantFunction · 0.85

Tested by

no test coverage detected