0.14.4 (2020-05-13)
- fix cva react template build + handle alias during build (c243d09)
- fix windows node resolving (4f2953e)
- support resolving .mjs and other exts in module deep imports (02753b7), closes #127
- history-fallback: properly redirect urls with dot (7f5e459), closes #130
- replace cleanUrl with ctx.path (#133) (f558a88)
- improve module resolving (405f685)
0.14.3 (2020-05-12)
- first request on server start should never 304 (c8a1ffd)
- fix web modules resolve (ce41994)
- make transformed imports work in Safari (b2377bf)
- only register sw if available (2efe9b3)
- should resolve web_modules during rewrite too (b5871eb)
- cva: use @pika/react + alias (f9b267f)
- sw: use lockfile hash (3bb1324)
- service worker caching (ee6a03d)
0.14.2 (2020-05-11)
0.14.1 (2020-05-11)
- stop spinner before logging writes (3d16951)
- cva: update templates (8cd2354)
0.14.0 (2020-05-10)
- do not rewrite external scripts in index.html (fix #116) (06e51cc)
- fix loading ts config (b85de93)
- run all transforms that pass particular
test
(#113) (ed5b9e7) - types: fix hmr hot.on callback type (a4524b4)
- expose base path as BASE (97ae7c3)
- cva: support creating project in cwd (close #111, #112) (02491a4)
- build --ssr (49e79e7)
- expose
rewriteImports
(#104) (d6151bf) - log hmr updates from server (b0713fe)
- resolve plugins + support vueCompilerOptions (7cdaa0b)
- support alias in config (86d550a)
- support config file (ab940fd)
- transforms (87ee998)
- Vue JSX support (efc853f)
- hmr: avoid re-fetching files not in the direct import chain (2ac7469)
- lazy load all compiler-sfc imports (d6dd2f0)
-
JSX support has been adjusted
- Default JSX support is now configured for Vue 3 JSX
jsx
option now accepts string presets ('vue' | 'preact' | 'react') e.g. to Use Preact with Vite, usevite --jsx preact
. In addition, when using the Preact preset, Vite auto injectsh
import in.jsx
and.tsx
files so the user no longer need to import it.
-
in resolvers, idToRequest has been renamed to alias
0.13.2 (2020-05-09)
- --open throwing error (#105) (6ee0168)
- handle lowercase doctypes (close #107) (32cf37f)
- single quote 'src' attribute for <script> (#106) (9336dac)
- cva: fix package.json files include for template-* (#100) (122851e)
0.13.1 (2020-05-09)
- hmr: fix hot.accept() module resolution (#97) (7ffa9c0)
- fix snowpack common chunk resolving + warn jsx in non jsx files (3653793), closes #94
0.13.0 (2020-05-08)
- hmr: change hmr API path to
vite/hmr
and provide typing (eab49a4), closes #92 - cli help message (a882aa4)
- hmr: support hot.dispose (e5cf447)
- support --debug flag from cli (12a5d47)
- support asset path import from js + special treatment of /public dir (9061e44)
- HMR API import path has changed from
@hmr
tovite/hmr
so that it can enjoy type support.
0.12.0 (2020-05-07)
- fix index resolving double append (4c5a31e)
- fix vue resolving without local install (29099ae)
- only bust vue cache on non-vue file change if it is a src import (cd8794c)
0.11.5 (2020-05-07)
0.11.4 (2020-05-07)
- avoid spinner in tests (19f8358)
- fix resolve path on windows (#73) (9f6f0a6)
- fix windows path resolution (82414b8), closes #69 #72
- support directory index resolving (close #74) (904266b)
- use esm-bundler build of vue (5741b79), closes #71
- create-vite-app: use valid html file (#76) (f3265c1)
- improve sfc compilation error output (44a8250)
- src import support (ffd1fee)
- support build sourcemap (6b63b34)
0.11.3 (2020-05-07)
- improve build error output (b1d6be7)
0.11.2 (2020-05-07)
- avoid mutating esbuild options (bd58858)
- fix web_modules resolving for build (fc75323)
- skip asset processing for data uri in css (e01e26d), closes #66
- warn non wrapped hot.accept calls (7aaf458)
- support --open flag (957945f)
0.11.1 (2020-05-06)
- fix rewrite when encountering external url (e78c9f7)
0.11.0 (2020-05-06)
- fix direct index script src hmr (73d94b9)
- dev support for ts (7cbaf5d)
- support minification with esbuild (b87ba7e)
- ts build support for vue files (8262108)
- tsx? support for build (81ffbc5)
0.10.3 (2020-05-05)
- fix module entry redirect on Windows (fix #55) (01135fa)
- only log target exist when error says so (59b8638)
- add asset options into build options (#53) (a5c608d)
- public base path support (c82a597)
- support ssrBuild (4808f41)
- support template pre-processors (b6cafee), closes #17
0.10.2 (2020-05-04)
- fix build index asset injection (ccce482)
- properly handle absolute asset urls (5ca0ec4), closes #45
- moduleResolve: do not rewrite external imports (dd7af0a), closes #42
- support CSS modules for *.module.css (1782f83)
0.10.1 (2020-05-04)
- crash when importing component with no script tag (#46) (586626f)
- should not write assets when buildOptions.write is false (#49) (ef28ee4)
0.10.0 (2020-05-04)
- load custom postcss config (#41) (d271e59)
- support json hmr (634a432)
- support postcss config in js css imports as well (0187d3f)
- support postcss in build (c9ffb45)
- vue source map (c9c9c87)
- lazy load postcss-load-config (1e8b584)
0.9.1 (2020-05-03)
- readBody can return null (a83637e)
0.9.0 (2020-05-03)
- handle
<script src>
in index.html (63b4de6) - handle js css import hmr (538198c)
- handle relative asset paths (5d7ac46)
- resolve css relative urls + base64 inline (f29037d)
- support importing css from js (a3bb973)
- support importing json (97dc7ba)
- support passing --flag=false via cli (3ff579c)
- support string literal dynamic imports (8ef6d4d)
- ws protocol based on location protocol (#31) (9af9ec1)
0.8.1 (2020-04-30)
- fix resolver ensurejs check (3a3442f)
0.8.0 (2020-04-30)
- allow passing rollupPluginVueOptions for build (a0053a0)
- support process.env.NODE_ENV (d4ccd15)
- support self-accepting hmr (30ab444)
0.7.0 (2020-04-29)
- support deep file paths on write (48f2459)
- support
__DEV__
flag - allow adjusting
cssFileName
in build (d9a0798) - allow customizing build via options (1b0b4ba)
- allow plugins to send custom hmr events (a22472d)
- support omitting .js extension (d00523f)
0.6.1 (2020-04-28)
0.6.0 (2020-04-27)
- fix hmr for windows
- only set 304 if etag matches (e0c7354)
- fix resolving scoped packages and relative imports inside
node_modules
(#15) (78ae1b7)
- http caching for vue requests (ecc7219)
0.5.3 (2020-04-26)
0.5.1 (2020-04-24)
0.5.0 (2020-04-24)
- add import analysis cache (868aa21)
- css modules support (fbbdb19)
- support preprocessors in vite build (5a7a4e2)
- vite build (0ea7970)
0.4.0 (2020-04-23)
- hmr propagation (6e66766)
- js hmr API (3e5076d)
- sourcemap handling for deep imports (b100683)
- style lang="x" support (35b23e1)
- support deep module imports (c11cfc8)
- support resolving snowpack web_modules (#4) (a183791)
0.3.2 (2020-04-22)
0.3.1 (2020-04-22)
- do not attempt rewrite on 304 (7b75253)
0.3.0 (2020-04-22)
0.2.0 (2020-04-21)
- support import rewriting in index.html (4ed433a)
0.1.2 (2020-04-21)
- use correct vue & compiler-sfc (0d5a2a4)
- use dependency vue if user has no local installation (bb9baa2)