Skip to content

Commit ff0b431

Browse files
committed
chore: 7.1.6
1 parent 8b5c16d commit ff0b431

File tree

5 files changed

+48
-27
lines changed

5 files changed

+48
-27
lines changed

.eslintrc

Lines changed: 16 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,18 @@
11
{
2-
"root": true,
3-
"rules": {
4-
"indent": [ 2, "tab", { "SwitchCase": 1 } ],
5-
"quotes": [ 2, "single" ],
6-
"linebreak-style": [ 2, "unix" ],
7-
"semi": [ 2, "always" ],
8-
"keyword-spacing": [ 2, { "before": true, "after": true } ],
9-
"space-before-blocks": [ 2, "always" ],
10-
"no-mixed-spaces-and-tabs": [ 2, "smart-tabs" ],
11-
"no-cond-assign": [ 0 ]
12-
},
13-
"env": {
14-
"es6": true,
15-
"browser": true,
16-
"mocha": true,
17-
"node": true
18-
},
19-
"extends": "eslint:recommended",
20-
"parserOptions": {
21-
"ecmaVersion": 10,
22-
"sourceType": "module"
23-
}
2+
"root": true,
3+
"rules": {
4+
"keyword-spacing": [2, { "before": true, "after": true }],
5+
"no-cond-assign": [0]
6+
},
7+
"env": {
8+
"es6": true,
9+
"browser": true,
10+
"mocha": true,
11+
"node": true
12+
},
13+
"extends": ["eslint:recommended", "prettier"],
14+
"parserOptions": {
15+
"ecmaVersion": 10,
16+
"sourceType": "module"
17+
}
2418
}

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# rollup-plugin-svelte changelog
22

3+
## 7.1.6
4+
5+
- Adjust inferred `css` option for Svelte 4
6+
37
## 7.1.5
48

59
- Get ready for Svelte 4

index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ module.exports = function (options = {}) {
4646
const cssOptionValue = majorVer > 3 ? 'external' : false;
4747
if (compilerOptions.css) {
4848
console.warn(
49-
`${PREFIX} Forcing \`"compilerOptions.css": ${typeof cssOptionValue === 'string' ? `"${cssOptionValue}"` : cssOptionValue}\` because "emitCss" was truthy.`
49+
`${PREFIX} Forcing \`"compilerOptions.css": ${
50+
typeof cssOptionValue === 'string' ? `"${cssOptionValue}"` : cssOptionValue
51+
}\` because "emitCss" was truthy.`
5052
);
5153
}
5254
compilerOptions.css = cssOptionValue;
@@ -103,7 +105,7 @@ module.exports = function (options = {}) {
103105

104106
if (!warned) {
105107
console.error(
106-
'\n\u001B[1m\u001B[31mWARNING: Your @rollup/plugin-node-resolve configuration\'s \'exportConditions\' array should include \'svelte\'. See https://github.com/sveltejs/rollup-plugin-svelte#svelte-exports-condition for more information\u001B[39m\u001B[22m\n'
108+
"\n\u001B[1m\u001B[31mWARNING: Your @rollup/plugin-node-resolve configuration's 'exportConditions' array should include 'svelte'. See https://github.com/sveltejs/rollup-plugin-svelte#svelte-exports-condition for more information\u001B[39m\u001B[22m\n"
107109
);
108110
warned = true;
109111
}

package-lock.json

Lines changed: 22 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "7.1.5",
2+
"version": "7.1.6",
33
"name": "rollup-plugin-svelte",
44
"description": "Compile Svelte components with Rollup",
55
"repository": "sveltejs/rollup-plugin-svelte",
@@ -34,6 +34,7 @@
3434
},
3535
"devDependencies": {
3636
"eslint": "^7.14.0",
37+
"eslint-config-prettier": "^8.8.0",
3738
"rollup": "^2.33.3",
3839
"sander": "^0.6.0",
3940
"source-map": "^0.7.3",

0 commit comments

Comments
 (0)