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

Function loadModule

packages/tailwindcss/src/compat/plugin-api.test.ts:2887–2900  ·  packages/tailwindcss/src/compat/plugin-api.test.ts::loadModule
(_id, base)

Source from the content-addressed store, hash-verified

2885 `,
2886 {
2887 async loadModule(_id, base) {
2888 return {
2889 path: class="st">'',
2890 base,
2891 module: ({ addUtilities }: PluginAPI) => {
2892 addUtilities({
2893 class="st">'.text-trim': {
2894 class="st">'text-box-trim': class="st">'both',
2895 class="st">'text-box-edge': class="st">'cap alphabetic',
2896 },
2897 })
2898 },
2899 }
2900 },
2901 },
2902 ),
2903 ).toMatchInlineSnapshot(`

Callers

nothing calls this directly

Calls 6

addUtilitiesFunction · 0.85
matchUtilitiesFunction · 0.85
addComponentsFunction · 0.85
matchComponentsFunction · 0.85
prefixFunction · 0.85
configFunction · 0.70

Tested by

no test coverage detected