diff --git a/package.json b/package.json index deae96b..61c5580 100644 --- a/package.json +++ b/package.json @@ -1,15 +1,15 @@ { "name": "rollup-starter-app", "devDependencies": { - "@rollup/plugin-commonjs": "^11.0.1", - "@rollup/plugin-node-resolve": "^7.0.0", + "@rollup/plugin-commonjs": "^11.1.0", + "@rollup/plugin-node-resolve": "^7.1.3", "npm-run-all": "^4.1.5", - "rollup": "^1.16.2", - "rollup-plugin-terser": "^5.0.0", - "serve": "^11.0.2" + "rollup": "^2.9.1", + "rollup-plugin-terser": "^5.3.0", + "serve": "^11.3.0" }, "dependencies": { - "date-fns": "^1.30.1" + "date-fns": "^2.13.0" }, "scripts": { "build": "rollup -c", diff --git a/src/update.js b/src/update.js index f1512a6..4e119bc 100644 --- a/src/update.js +++ b/src/update.js @@ -1,4 +1,4 @@ -import format from 'date-fns/format'; +import { format } from 'date-fns'; var span = document.querySelector('#time-now');