@marko/run 0.1.13 → 0.1.14
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/vite/index.cjs +4 -1
- package/dist/vite/index.js +4 -1
- package/package.json +2 -2
package/dist/vite/index.cjs
CHANGED
|
@@ -1643,7 +1643,7 @@ function markoRun(opts = {}) {
|
|
|
1643
1643
|
}
|
|
1644
1644
|
if (virtualFiles.has(importee)) {
|
|
1645
1645
|
resolved = importee;
|
|
1646
|
-
if (
|
|
1646
|
+
if (!ssr && isMarkoFile(resolved)) {
|
|
1647
1647
|
resolved += browserEntryQuery;
|
|
1648
1648
|
}
|
|
1649
1649
|
}
|
|
@@ -1651,6 +1651,9 @@ function markoRun(opts = {}) {
|
|
|
1651
1651
|
},
|
|
1652
1652
|
async load(id) {
|
|
1653
1653
|
var _a;
|
|
1654
|
+
if (id.endsWith(browserEntryQuery)) {
|
|
1655
|
+
id = id.slice(0, -browserEntryQuery.length);
|
|
1656
|
+
}
|
|
1654
1657
|
if (virtualFiles.has(id)) {
|
|
1655
1658
|
if (!isRendered) {
|
|
1656
1659
|
await renderVirtualFiles();
|
package/dist/vite/index.js
CHANGED
|
@@ -1601,7 +1601,7 @@ function markoRun(opts = {}) {
|
|
|
1601
1601
|
}
|
|
1602
1602
|
if (virtualFiles.has(importee)) {
|
|
1603
1603
|
resolved = importee;
|
|
1604
|
-
if (
|
|
1604
|
+
if (!ssr && isMarkoFile(resolved)) {
|
|
1605
1605
|
resolved += browserEntryQuery;
|
|
1606
1606
|
}
|
|
1607
1607
|
}
|
|
@@ -1609,6 +1609,9 @@ function markoRun(opts = {}) {
|
|
|
1609
1609
|
},
|
|
1610
1610
|
async load(id) {
|
|
1611
1611
|
var _a;
|
|
1612
|
+
if (id.endsWith(browserEntryQuery)) {
|
|
1613
|
+
id = id.slice(0, -browserEntryQuery.length);
|
|
1614
|
+
}
|
|
1612
1615
|
if (virtualFiles.has(id)) {
|
|
1613
1616
|
if (!isRendered) {
|
|
1614
1617
|
await renderVirtualFiles();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marko/run",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.14",
|
|
4
4
|
"description": "The Marko application framework.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/marko-js/run/tree/main/packages/run",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"typescript": "^4.7.4"
|
|
113
113
|
},
|
|
114
114
|
"dependencies": {
|
|
115
|
-
"@marko/vite": "^2.4.
|
|
115
|
+
"@marko/vite": "^2.4.6",
|
|
116
116
|
"cli-table3": "^0.6.3",
|
|
117
117
|
"compression": "^1.7.4",
|
|
118
118
|
"dotenv": "^16.0.3",
|