@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.
Files changed (2) hide show
  1. package/dist/index.mjs +5 -1
  2. 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
- return cjsToEsm(source);
1084
+ try {
1085
+ return await cjsToEsm(source);
1086
+ } catch {
1087
+ return null;
1088
+ }
1085
1089
  }
1086
1090
  }
1087
1091
  return null;
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": "4.1.7",
4
+ "version": "4.1.8",
5
5
  "author": "Dylan Piercey <dpiercey@ebay.com>",
6
6
  "bugs": "https://github.com/marko-js/vite/issues",
7
7
  "dependencies": {