Skip to content

Commit aeb1cb2

Browse files
authored
Linaria 6 (#3407)
* Install new @wyw-in-js packages * Update imports * -1 * Revert "-1" This reverts commit e68977a. * Revert "Update imports" This reverts commit 5848bfe. * Use the new packages * Rename
1 parent 25a8382 commit aeb1cb2

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@
6464
"@biomejs/biome": "1.4.1",
6565
"@faker-js/faker": "^8.0.0",
6666
"@ianvs/prettier-plugin-sort-imports": "^4.0.2",
67-
"@linaria/rollup": "^5.0.3",
68-
"@linaria/vite": "^5.0.3",
67+
"@linaria/core": "^6.0.0",
6968
"@microsoft/api-extractor": "^7.23.0",
7069
"@rollup/plugin-babel": "^6.0.3",
7170
"@rollup/plugin-node-resolve": "^15.1.0",
@@ -80,6 +79,8 @@
8079
"@typescript-eslint/parser": "^6.1.0",
8180
"@vitejs/plugin-react": "^4.0.2",
8281
"@vitest/coverage-v8": "^1.0.0",
82+
"@wyw-in-js/rollup": "^0.2.2",
83+
"@wyw-in-js/vite": "^0.2.2",
8384
"babel-plugin-optimize-clsx": "^2.6.2",
8485
"eslint": "^8.43.0",
8586
"eslint-config-prettier": "^9.0.0",

rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { isAbsolute } from 'node:path';
2-
import linaria from '@linaria/rollup';
2+
import wyw from '@wyw-in-js/rollup';
33
import postcss from 'rollup-plugin-postcss';
44
import postcssNested from 'postcss-nested';
55
import { babel } from '@rollup/plugin-babel';
@@ -26,7 +26,7 @@ export default {
2626
],
2727
external: (id) => !id.startsWith('.') && !id.startsWith('@linaria:') && !isAbsolute(id),
2828
plugins: [
29-
linaria({
29+
wyw({
3030
preprocessor: 'none',
3131
classNameSlug(hash) {
3232
// We add the package version as suffix to avoid style conflicts

vite.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import linaria from '@linaria/vite';
21
import react from '@vitejs/plugin-react';
2+
import wyw from '@wyw-in-js/vite';
33
import postcssNested from 'postcss-nested';
44
import { defineConfig } from 'vite';
55

@@ -25,7 +25,7 @@ export default defineConfig({
2525
plugins: [['optimize-clsx', { functionNames: ['getCellClassname'] }]]
2626
}
2727
}),
28-
!isTest && linaria({ preprocessor: 'none' })
28+
!isTest && wyw({ preprocessor: 'none' })
2929
],
3030
css: {
3131
postcss: {

0 commit comments

Comments
 (0)