rollup-plugin-react-scoped-css 1.2.2 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +7 -3
- package/.releaserc +0 -13
- package/babel.config.cjs +0 -7
- package/eslint.config.mjs +0 -81
package/README.md
CHANGED
|
@@ -35,7 +35,7 @@ export default defineConfig({
|
|
|
35
35
|
in rollup:
|
|
36
36
|
```js
|
|
37
37
|
// rollup.config.js
|
|
38
|
-
import reactScopedCssPlugin from 'rollup-plugin-react-scoped-css';
|
|
38
|
+
import { reactScopedCssPlugin } from 'rollup-plugin-react-scoped-css';
|
|
39
39
|
|
|
40
40
|
export default {
|
|
41
41
|
input: 'src/input.js',
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rollup-plugin-react-scoped-css",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"description": "Bring scoped CSS to React with Vite & Rollup. Lightweight component-level style isolation similar to Vue and Angular.",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"main": "dist/index.js",
|
|
6
7
|
"types": "dist/index.d.ts",
|
|
7
8
|
"scripts": {
|
|
@@ -44,8 +45,10 @@
|
|
|
44
45
|
"@rollup/pluginutils": "^5.3.0",
|
|
45
46
|
"css-tree": "3.2.1",
|
|
46
47
|
"escodegen": "2.1.0",
|
|
47
|
-
"js-xxhash": "5.0.1"
|
|
48
|
-
|
|
48
|
+
"js-xxhash": "5.0.1"
|
|
49
|
+
},
|
|
50
|
+
"peerDependencies": {
|
|
51
|
+
"rollup": "^4.0.0"
|
|
49
52
|
},
|
|
50
53
|
"devDependencies": {
|
|
51
54
|
"@babel/core": "7.29.0",
|
|
@@ -72,6 +75,7 @@
|
|
|
72
75
|
"eslint-plugin-prettier": "5.2.1",
|
|
73
76
|
"eslint-plugin-react": "7.37.1",
|
|
74
77
|
"jest": "30.2.0",
|
|
78
|
+
"rollup": "^4.59.0",
|
|
75
79
|
"semantic-release": "25.0.3",
|
|
76
80
|
"typescript": "5.9.3"
|
|
77
81
|
}
|
package/.releaserc
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"branches": ["main", "next"],
|
|
3
|
-
"plugins": [
|
|
4
|
-
"@semantic-release/commit-analyzer",
|
|
5
|
-
"@semantic-release/release-notes-generator",
|
|
6
|
-
"@semantic-release/npm",
|
|
7
|
-
["@semantic-release/git", {
|
|
8
|
-
"assets": ["package.json"],
|
|
9
|
-
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
|
|
10
|
-
}],
|
|
11
|
-
"@semantic-release/github"
|
|
12
|
-
]
|
|
13
|
-
}
|
package/babel.config.cjs
DELETED
package/eslint.config.mjs
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import typescriptPlugin from "@typescript-eslint/eslint-plugin";
|
|
2
|
-
import typescriptParser from "@typescript-eslint/parser";
|
|
3
|
-
import reactPlugin from "eslint-plugin-react";
|
|
4
|
-
import prettierPlugin from "eslint-plugin-prettier";
|
|
5
|
-
|
|
6
|
-
export default [
|
|
7
|
-
{
|
|
8
|
-
files: ["**/*.{js,jsx,ts,tsx}"],
|
|
9
|
-
languageOptions: {
|
|
10
|
-
ecmaVersion: "latest",
|
|
11
|
-
sourceType: "module",
|
|
12
|
-
globals: {
|
|
13
|
-
window: "readonly",
|
|
14
|
-
document: "readonly",
|
|
15
|
-
},
|
|
16
|
-
parser: typescriptParser,
|
|
17
|
-
parserOptions: {
|
|
18
|
-
ecmaFeatures: {
|
|
19
|
-
jsx: true,
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
plugins: {
|
|
24
|
-
react: reactPlugin,
|
|
25
|
-
"@typescript-eslint": typescriptPlugin,
|
|
26
|
-
prettier: prettierPlugin,
|
|
27
|
-
},
|
|
28
|
-
rules: {
|
|
29
|
-
"react/jsx-filename-extension": [1, { extensions: [".jsx", ".tsx"] }],
|
|
30
|
-
},
|
|
31
|
-
settings: {
|
|
32
|
-
react: {
|
|
33
|
-
version: "detect",
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
ignores: [
|
|
37
|
-
"**/node_modules/**",
|
|
38
|
-
"**/__mocks__/**",
|
|
39
|
-
"**/dist/**",
|
|
40
|
-
"**/examples/**",
|
|
41
|
-
],
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
files: ["**/*.ts", "**/*.tsx"],
|
|
45
|
-
languageOptions: {
|
|
46
|
-
parser: typescriptParser,
|
|
47
|
-
},
|
|
48
|
-
rules: {},
|
|
49
|
-
ignores: [
|
|
50
|
-
"**/node_modules/**",
|
|
51
|
-
"**/__mocks__/**",
|
|
52
|
-
"**/dist/**",
|
|
53
|
-
"**/examples/**",
|
|
54
|
-
],
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
files: ["**/*.js", "**/*.jsx"],
|
|
58
|
-
languageOptions: {},
|
|
59
|
-
rules: {},
|
|
60
|
-
ignores: [
|
|
61
|
-
"**/node_modules/**",
|
|
62
|
-
"**/__mocks__/**",
|
|
63
|
-
"**/dist/**",
|
|
64
|
-
"**/examples/**",
|
|
65
|
-
],
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
plugins: {
|
|
69
|
-
prettier: prettierPlugin,
|
|
70
|
-
},
|
|
71
|
-
rules: {
|
|
72
|
-
"prettier/prettier": "error", // Enforce Prettier formatting
|
|
73
|
-
},
|
|
74
|
-
ignores: [
|
|
75
|
-
"**/node_modules/**",
|
|
76
|
-
"**/__mocks__/**",
|
|
77
|
-
"**/dist/**",
|
|
78
|
-
"**/examples/**",
|
|
79
|
-
],
|
|
80
|
-
},
|
|
81
|
-
];
|