Skip to content

Commit

Permalink
Drop prefixer
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Dec 15, 2024
1 parent 319b3f5 commit 3759507
Show file tree
Hide file tree
Showing 20 changed files with 37 additions and 999 deletions.
7 changes: 2 additions & 5 deletions packages/cache/__tests__/__snapshots__/index.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

exports[`should accept container option 1`] = `
.emotion-0 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
color: blue;
}
Expand All @@ -22,7 +19,7 @@ exports[`should accept container option 1`] = `
data-s=""
>
.emotion-0{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:blue;}
.emotion-0{display:flex;color:blue;}
</style>
</div>
<div>
Expand All @@ -45,7 +42,7 @@ exports[`should accept insertionPoint option 1`] = `
data-s=""
>
.test-insertion-point-83n355{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:blue;}
.test-insertion-point-83n355{display:flex;color:blue;}
</style>
Expand Down
4 changes: 2 additions & 2 deletions packages/cache/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import {
createUnsafeSelectorsAlarm,
incorrectImportAlarm
} from './stylis-plugins'
import { prefixer } from './prefixer'
import { StylisPlugin } from './types'

export interface Options {
Expand All @@ -37,7 +36,8 @@ let getServerStylisCache = isBrowser
? undefined
: weakMemoize(() => memoize<Record<string, string>>(() => ({})))

const defaultStylisPlugins = [prefixer]
// keep it in a variable as it's used as cache key by `getServerStylisCache`
const defaultStylisPlugins: StylisPlugin[] = []

let getSourceMap: ((styles: string) => string | undefined) | undefined
if (isDevelopment) {
Expand Down
347 changes: 0 additions & 347 deletions packages/cache/src/prefixer.ts

This file was deleted.

Loading

0 comments on commit 3759507

Please sign in to comment.