Next generation frontend tooling. It's fast!
Go to file
2020-04-21 00:42:38 -04:00
bin properly handle cwd 2020-04-20 22:04:51 -04:00
src feat: style hot reload 2020-04-21 00:37:39 -04:00
test todos 2020-04-21 00:38:36 -04:00
.gitignore add tests 2020-04-20 20:57:21 -04:00
.prettierrc init 2020-04-20 04:00:10 -04:00
LICENSE refactor: use TS 2020-04-20 19:13:22 -04:00
package.json fix prepublish script 2020-04-21 00:42:38 -04:00
README.md fix prepublish script 2020-04-21 00:42:38 -04:00
tsconfig.base.json refactor: use TS 2020-04-20 19:13:22 -04:00
yarn.lock feat: style hot reload 2020-04-21 00:37:39 -04:00

vue-dev-server

⚠️ Warning: Experimental ⚠️

npx -p @vue/dev-server vds

How It Works

Imports are requested by the browser as native ES module imports - there's no bundling.

The server intercepts requests to *.vue files, compiles them on the fly, and sends them back as JavaScript.

For libraries that provide ES modules builds that work in browsers, just directly import them from a CDN.

Imports to npm packages inside .js files (package name only) are re-written on the fly to point to locally installed files. Currently, only vue is supported as a special case. Other packages will likely need to be transformed to be exposed as a native browser-targeting ES module.