Skip to content

Commit 43f561e

Browse files
philipp-spiessadamwathan
authored andcommitted
Remove //
1 parent 737f03f commit 43f561e

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

packages/tailwindcss/src/at-import.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,6 @@ test('emits the right base for @source directives inside nested files', async ()
492492
)
493493

494494
expect(compiler.globs).toEqual([
495-
//
496495
{ pattern: './nested/**/*.css', base: '/root/foo' },
497496
{ pattern: './root/**/*.css', base: '/root' },
498497
])
@@ -540,7 +539,6 @@ test('emits the right base for @source found inside JS configs and plugins from
540539
)
541540

542541
expect(compiler.globs).toEqual([
543-
//
544542
{ pattern: './nested-plugin/*.html', base: '/root/foo-plugin' },
545543
{ pattern: './root-plugin/*.html', base: '/root-plugin' },
546544

@@ -568,5 +566,7 @@ test('it crashes when inside a cycle', async () => {
568566
`,
569567
{ loadStylesheet },
570568
),
571-
).rejects.toMatchInlineSnapshot(`[Error: Exceeded maximum recursion depth while resolving \`foo.css\` in \`/root\`)]`)
569+
).rejects.toMatchInlineSnapshot(
570+
`[Error: Exceeded maximum recursion depth while resolving \`foo.css\` in \`/root\`)]`,
571+
)
572572
})

packages/tailwindcss/src/compat/apply-compat-hooks.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@ import { registerThemeVariantOverrides } from './theme-variants'
1515

1616
export async function applyCompatibilityHooks({
1717
designSystem,
18+
base,
1819
ast,
1920
loadModule,
2021
globs,
2122
}: {
2223
designSystem: DesignSystem
24+
base: string
2325
ast: AstNode[]
2426
loadModule: (
2527
path: string,
@@ -186,9 +188,9 @@ export async function applyCompatibilityHooks({
186188
let userConfig = [...pluginConfigs, ...configs]
187189

188190
let resolvedConfig = resolveConfig(designSystem, [
189-
{ config: createCompatConfig(designSystem.theme), base: '' },
191+
{ config: createCompatConfig(designSystem.theme), base },
190192
...userConfig,
191-
{ config: { plugins: [darkModePlugin] }, base: '' },
193+
{ config: { plugins: [darkModePlugin] }, base },
192194
])
193195
let resolvedUserConfig = resolveConfig(designSystem, userConfig)
194196

packages/tailwindcss/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ async function parseCss(
256256
// of random arguments because it really just needs access to "the world" to
257257
// do whatever ungodly things it needs to do to make things backwards
258258
// compatible without polluting core.
259-
await applyCompatibilityHooks({ designSystem, ast, loadModule, globs })
259+
await applyCompatibilityHooks({ designSystem, base, ast, loadModule, globs })
260260

261261
for (let customVariant of customVariants) {
262262
customVariant(designSystem)

0 commit comments

Comments
 (0)