Skip to content

Commit 2c34553

Browse files
Apply PR feedback
1 parent 11bf660 commit 2c34553

File tree

10 files changed

+3
-87
lines changed

10 files changed

+3
-87
lines changed

packages/@tailwindcss-postcss/src/index.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,6 @@ describe('plugins', () => {
179179
{ from: `${__dirname}/fixtures/another-project/input.css` },
180180
)
181181

182-
// TODO: Figure out why `root.walkAtRules` prevents our path fix plugin
183-
// from running.
184182
expect(result.css.trim()).toMatchInlineSnapshot(`
185183
".underline {
186184
text-decoration-line: underline;

packages/@tailwindcss-postcss/src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ function tailwindcss(opts: PluginOptions = {}): AcceptedPlugin {
4949
}
5050
})
5151

52-
let hasApply = false
53-
let hasTailwind = false
52+
let hasApply: boolean, hasTailwind: boolean
5453

5554
return {
5655
postcssPlugin: '@tailwindcss/postcss',

packages/internal-postcss-fix-relative-paths/README.md

Lines changed: 0 additions & 40 deletions
This file was deleted.

packages/internal-postcss-fix-relative-paths/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default function fixRelativePathsPlugin(): Plugin {
88
// Retain a list of touched at-rules to avoid infinite loops
99
let touched: WeakSet<AtRule> = new WeakSet()
1010

11-
function fixRelativePath(atRule: AtRule, helpers: any) {
11+
function fixRelativePath(atRule: AtRule) {
1212
let rootPath = getRoot(atRule)?.source?.input.file
1313
if (!rootPath) {
1414
return

playgrounds/vite/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"dependencies": {
1212
"@tailwindcss/vite": "workspace:^",
1313
"@vitejs/plugin-react": "^4.3.0",
14-
"autoprefixer": "^10.4.19",
1514
"react": "^18.3.1",
1615
"react-dom": "^18.3.1",
1716
"tailwindcss": "workspace:^"

playgrounds/vite/postcss.config.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

playgrounds/vite/src/app.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
@import 'tailwindcss';
2-
@import './foo/bar.css';
2+
@plugin "./plugin.js";

playgrounds/vite/src/foo/bar.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

playgrounds/vite/vite.config.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,5 @@ import react from '@vitejs/plugin-react'
33
import { defineConfig } from 'vite'
44

55
export default defineConfig({
6-
css: {
7-
postcss: '.',
8-
},
96
plugins: [react(), tailwindcss()],
107
})

pnpm-lock.yaml

Lines changed: 0 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)