@marko/vite 3.1.3 → 3.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -76,10 +76,8 @@ function markoPlugin(opts = {}) {
76
76
  let domConfig;
77
77
  let hydrateConfig;
78
78
  const resolveVirtualDependency = (from, dep) => {
79
- const query = `${virtualFileQuery}&id=${encodeURIComponent(
80
- normalizePath(dep.virtualPath)
81
- )}`;
82
79
  const normalizedFrom = normalizePath(from);
80
+ const query = `${virtualFileQuery}&id=${Buffer.from(dep.virtualPath).toString("base64url") + import_path.default.extname(dep.virtualPath)}`;
83
81
  const id = normalizePath(normalizedFrom) + query;
84
82
  if (devServer) {
85
83
  const prev = virtualFiles.get(id);
package/dist/index.mjs CHANGED
@@ -56,10 +56,8 @@ function markoPlugin(opts = {}) {
56
56
  let domConfig;
57
57
  let hydrateConfig;
58
58
  const resolveVirtualDependency = (from, dep) => {
59
- const query = `${virtualFileQuery}&id=${encodeURIComponent(
60
- normalizePath(dep.virtualPath)
61
- )}`;
62
59
  const normalizedFrom = normalizePath(from);
60
+ const query = `${virtualFileQuery}&id=${Buffer.from(dep.virtualPath).toString("base64url") + path.extname(dep.virtualPath)}`;
63
61
  const id = normalizePath(normalizedFrom) + query;
64
62
  if (devServer) {
65
63
  const prev = virtualFiles.get(id);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@marko/vite",
3
3
  "description": "A Marko plugin for Vite",
4
- "version": "3.1.3",
4
+ "version": "3.1.4",
5
5
  "author": "Dylan Piercey <dpiercey@ebay.com>",
6
6
  "bugs": "https://github.com/marko-js/vite/issues",
7
7
  "dependencies": {