Skip to content

Commit

Permalink
chore: 7.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm committed Jun 26, 2023
1 parent 8b5c16d commit ff0b431
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 27 deletions.
38 changes: 16 additions & 22 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@
{
"root": true,
"rules": {
"indent": [ 2, "tab", { "SwitchCase": 1 } ],
"quotes": [ 2, "single" ],
"linebreak-style": [ 2, "unix" ],
"semi": [ 2, "always" ],
"keyword-spacing": [ 2, { "before": true, "after": true } ],
"space-before-blocks": [ 2, "always" ],
"no-mixed-spaces-and-tabs": [ 2, "smart-tabs" ],
"no-cond-assign": [ 0 ]
},
"env": {
"es6": true,
"browser": true,
"mocha": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 10,
"sourceType": "module"
}
"root": true,
"rules": {
"keyword-spacing": [2, { "before": true, "after": true }],
"no-cond-assign": [0]
},
"env": {
"es6": true,
"browser": true,
"mocha": true,
"node": true
},
"extends": ["eslint:recommended", "prettier"],
"parserOptions": {
"ecmaVersion": 10,
"sourceType": "module"
}
}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# rollup-plugin-svelte changelog

## 7.1.6

- Adjust inferred `css` option for Svelte 4

## 7.1.5

- Get ready for Svelte 4
Expand Down
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ module.exports = function (options = {}) {
const cssOptionValue = majorVer > 3 ? 'external' : false;
if (compilerOptions.css) {
console.warn(
`${PREFIX} Forcing \`"compilerOptions.css": ${typeof cssOptionValue === 'string' ? `"${cssOptionValue}"` : cssOptionValue}\` because "emitCss" was truthy.`
`${PREFIX} Forcing \`"compilerOptions.css": ${
typeof cssOptionValue === 'string' ? `"${cssOptionValue}"` : cssOptionValue
}\` because "emitCss" was truthy.`
);
}
compilerOptions.css = cssOptionValue;
Expand Down Expand Up @@ -103,7 +105,7 @@ module.exports = function (options = {}) {

if (!warned) {
console.error(
'\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'
"\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"
);
warned = true;
}
Expand Down
24 changes: 22 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "7.1.5",
"version": "7.1.6",
"name": "rollup-plugin-svelte",
"description": "Compile Svelte components with Rollup",
"repository": "sveltejs/rollup-plugin-svelte",
Expand Down Expand Up @@ -34,6 +34,7 @@
},
"devDependencies": {
"eslint": "^7.14.0",
"eslint-config-prettier": "^8.8.0",
"rollup": "^2.33.3",
"sander": "^0.6.0",
"source-map": "^0.7.3",
Expand Down

0 comments on commit ff0b431

Please sign in to comment.