@marko/vite 4.1.7 → 4.1.8
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.mjs +5 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1081,7 +1081,11 @@ function markoPlugin(opts = {}) {
|
|
|
1081
1081
|
if (!isBuild) {
|
|
1082
1082
|
const ext = path5.extname(id);
|
|
1083
1083
|
if (ext === ".cjs" || ext === ".js" && isCJSModule(id)) {
|
|
1084
|
-
|
|
1084
|
+
try {
|
|
1085
|
+
return await cjsToEsm(source);
|
|
1086
|
+
} catch {
|
|
1087
|
+
return null;
|
|
1088
|
+
}
|
|
1085
1089
|
}
|
|
1086
1090
|
}
|
|
1087
1091
|
return null;
|