Skip to content

Commit

Permalink
drop oxide api shim
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinMalfait committed Feb 8, 2023
1 parent 0bf3a7d commit add1636
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 31 deletions.
21 changes: 0 additions & 21 deletions oxide-node-api-shim/index.js

This file was deleted.

5 changes: 0 additions & 5 deletions oxide-node-api-shim/package.json

This file was deleted.

2 changes: 0 additions & 2 deletions package.stable.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"stubs/*.stub.js",
"nesting/*",
"types/**/*",
"oxide-node-api-shim",
"*.d.ts",
"*.css",
"*.js"
Expand Down Expand Up @@ -71,7 +70,6 @@
"postcss": "^8.0.9"
},
"dependencies": {
"@tailwindcss/oxide": "file:./oxide-node-api-shim",
"arg": "^5.0.2",
"chokidar": "^3.5.3",
"color-name": "^1.1.4",
Expand Down
4 changes: 1 addition & 3 deletions src/lib/expandTailwindAtRules.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import log from '../util/log'
import cloneNodes from '../util/cloneNodes'
import { defaultExtractor } from './defaultExtractor'

import oxide from '@tailwindcss/oxide'

let env = sharedState.env

const builtInExtractors = {
Expand Down Expand Up @@ -134,7 +132,7 @@ export default function expandTailwindAtRules(context) {

if (env.OXIDE) {
// TODO: Pass through or implement `extractor`
for (let candidate of oxide.parseCandidateStringsFromFiles(
for (let candidate of require('@tailwindcss/oxide').parseCandidateStringsFromFiles(
context.changedContent
// Object.assign({}, builtInTransformers, context.tailwindConfig.content.transform)
)) {
Expand Down

0 comments on commit add1636

Please sign in to comment.