diff --git a/app/frontend/live-preview-client/rails.js b/app/frontend/live-preview-client/rails.js index fb08bb4..caa04ae 100644 --- a/app/frontend/live-preview-client/rails.js +++ b/app/frontend/live-preview-client/rails.js @@ -1,4 +1,4 @@ -import * as axios from 'axios' +import axios from 'axios' import { debounce } from './utils' import runScripts from './run-scripts' diff --git a/package.json b/package.json index d4d7af8..08fd119 100644 --- a/package.json +++ b/package.json @@ -52,6 +52,7 @@ "minimist": "^1.2.6", "eventsource": "^1.1.1", "async": "^2.6.4", - "postcss": "^8.4.31" + "postcss": "^8.4.31", + "vite": "^5.0.5" } } diff --git a/yarn.lock b/yarn.lock index a634c0d..56075fd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2695,18 +2695,7 @@ vite-plugin-vue2-svg@^0.4.0: "@vue/component-compiler-utils" "^3.2.0" svgo "^3.0.0" -"vite@^3.0.0 || ^4.0.0 || ^5.0.0-0", "vite@^3.1.0 || ^4.0.0 || ^5.0.0-0": - version "5.0.4" - resolved "https://registry.yarnpkg.com/vite/-/vite-5.0.4.tgz#d984d2aaa8bac30f1ca9b9eea9b97e052f88c307" - integrity sha512-RzAr8LSvM8lmhB4tQ5OPcBhpjOZRZjuxv9zO5UcxeoY2bd3kP3Ticd40Qma9/BqZ8JS96Ll/jeBX9u+LJZrhVg== - dependencies: - esbuild "^0.19.3" - postcss "^8.4.31" - rollup "^4.2.0" - optionalDependencies: - fsevents "~2.3.3" - -vite@^5.0.5: +"vite@^3.0.0 || ^4.0.0 || ^5.0.0-0", "vite@^3.1.0 || ^4.0.0 || ^5.0.0-0", vite@^5.0.5: version "5.0.7" resolved "https://registry.yarnpkg.com/vite/-/vite-5.0.7.tgz#ad081d735f6769f76b556818500bdafb72c3fe93" integrity sha512-B4T4rJCDPihrQo2B+h1MbeGL/k/GMAHzhQ8S0LjQ142s6/+l3hHTT095ORvsshj4QCkoWu3Xtmob5mazvakaOw==