From 5ee0e577e5ac8e586aaa825a18025f97475dbaff Mon Sep 17 00:00:00 2001 From: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com> Date: Tue, 1 Dec 2020 08:53:22 -0800 Subject: [PATCH] Updated dependencies Includes updating to the latest rollup-plugin-svelte --- examples/basic-routing/rollup.config.js | 11 ++++++----- examples/dynamic-imports/rollup.config.js | 11 ++++++----- package.json | 17 +++++++++-------- test/app/rollup.config.js | 11 ++++++----- 4 files changed, 27 insertions(+), 23 deletions(-) diff --git a/examples/basic-routing/rollup.config.js b/examples/basic-routing/rollup.config.js index 742d141..a7ce327 100755 --- a/examples/basic-routing/rollup.config.js +++ b/examples/basic-routing/rollup.config.js @@ -1,6 +1,7 @@ import svelte from 'rollup-plugin-svelte' import resolve from '@rollup/plugin-node-resolve' import commonjs from '@rollup/plugin-commonjs' +import css from 'rollup-plugin-css-only' export default { input: 'src/main.js', @@ -15,11 +16,11 @@ export default { svelte({ // enable run-time checks when not in production dev: true, - // we'll extract any component CSS out into - // a separate file  better for performance - css: css => { - css.write('bundle.css') - } + }), + // we'll extract any component CSS out into + // a separate file better for performance + css({ + output: 'bundle.css' }), // If you have external dependencies installed from diff --git a/examples/dynamic-imports/rollup.config.js b/examples/dynamic-imports/rollup.config.js index 742d141..a7ce327 100755 --- a/examples/dynamic-imports/rollup.config.js +++ b/examples/dynamic-imports/rollup.config.js @@ -1,6 +1,7 @@ import svelte from 'rollup-plugin-svelte' import resolve from '@rollup/plugin-node-resolve' import commonjs from '@rollup/plugin-commonjs' +import css from 'rollup-plugin-css-only' export default { input: 'src/main.js', @@ -15,11 +16,11 @@ export default { svelte({ // enable run-time checks when not in production dev: true, - // we'll extract any component CSS out into - // a separate file  better for performance - css: css => { - css.write('bundle.css') - } + }), + // we'll extract any component CSS out into + // a separate file better for performance + css({ + output: 'bundle.css' }), // If you have external dependencies installed from diff --git a/package.json b/package.json index 80bbdf0..70a3eb8 100644 --- a/package.json +++ b/package.json @@ -34,16 +34,17 @@ "regexparam": "1.3.0" }, "devDependencies": { - "@rollup/plugin-commonjs": "^15.1.0", - "@rollup/plugin-node-resolve": "^9.0.0", + "@rollup/plugin-commonjs": "^17.0.0", + "@rollup/plugin-node-resolve": "^11.0.0", "chromedriver": "^85.0.0", - "eslint": "^7.11.0", - "eslint-plugin-html": "^6.1.0", + "eslint": "^7.14.0", + "eslint-plugin-html": "^6.1.1", "eslint-plugin-svelte3": "^2.7.3", - "nightwatch": "^1.5.0", - "rollup": "^2.32.1", - "rollup-plugin-svelte": "^6.1.0", + "nightwatch": "^1.5.1", + "rollup": "^2.34.0", + "rollup-plugin-css-only": "^3.0.0", + "rollup-plugin-svelte": "^7.0.0", "serve": "^11.3.2", - "svelte": "^3.29.0" + "svelte": "^3.30.1" } } diff --git a/test/app/rollup.config.js b/test/app/rollup.config.js index 742d141..a7ce327 100755 --- a/test/app/rollup.config.js +++ b/test/app/rollup.config.js @@ -1,6 +1,7 @@ import svelte from 'rollup-plugin-svelte' import resolve from '@rollup/plugin-node-resolve' import commonjs from '@rollup/plugin-commonjs' +import css from 'rollup-plugin-css-only' export default { input: 'src/main.js', @@ -15,11 +16,11 @@ export default { svelte({ // enable run-time checks when not in production dev: true, - // we'll extract any component CSS out into - // a separate file  better for performance - css: css => { - css.write('bundle.css') - } + }), + // we'll extract any component CSS out into + // a separate file better for performance + css({ + output: 'bundle.css' }), // If you have external dependencies installed from