Skip to content

Commit

Permalink
refactor: remove css rewriter
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Vite 2.6.x and greater is now required

To keep up with internal fixes and feature additions Vite 2.6.x or greater is required to support `server.origin` which removes the need for the CSS Rewriter.
  • Loading branch information
cshawaus committed Feb 12, 2022
1 parent bdb580e commit 3c5c49e
Show file tree
Hide file tree
Showing 4 changed files with 153 additions and 148 deletions.
8 changes: 4 additions & 4 deletions package.json
Expand Up @@ -64,7 +64,8 @@
"debug": "^4.3.3",
"es-module-lexer": "^0.9.3",
"magic-string": "^0.25.7",
"rollup-pluginutils": "^2.8.2"
"rollup-pluginutils": "^2.8.2",
"vite": "^2.8.0"
},
"devDependencies": {
"@commitlint/cli": "^16.0.1",
Expand All @@ -83,11 +84,10 @@
"prettier": "^2.5.1",
"semantic-release": "^17.4.7",
"tsup": "^5.11.9",
"typescript": "^4.5.4",
"vite": "*"
"typescript": "^4.5.4"
},
"peerDependencies": {
"vite": ">2.0.0-0"
"vite": ">2.6.0"
},
"optionalDependencies": {
"fsevents": "~2.3.2"
Expand Down
32 changes: 0 additions & 32 deletions src/css.ts

This file was deleted.

3 changes: 1 addition & 2 deletions src/index.ts
@@ -1,4 +1,3 @@
import { bundlesImportRewriter } from './bundles'
import { cssImportRewriter } from './css'

export { bundlesImportRewriter, cssImportRewriter }
export { bundlesImportRewriter }

0 comments on commit 3c5c49e

Please sign in to comment.