@marko/vite 5.0.9 → 5.0.10

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 +3 -1
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -4,6 +4,7 @@ import anyMatch from "anymatch";
4
4
  import crypto from "crypto";
5
5
  import glob2 from "fast-glob";
6
6
  import fs4 from "fs";
7
+ import { createRequire } from "module";
7
8
  import path6 from "path";
8
9
  import { pathToFileURL } from "url";
9
10
 
@@ -1245,7 +1246,8 @@ function markoPlugin(opts = {}) {
1245
1246
  tagsAPI = false;
1246
1247
  } else {
1247
1248
  try {
1248
- tagsAPI = (await import(translatorPackage)).preferAPI !== "class";
1249
+ const require2 = createRequire(import.meta.url);
1250
+ tagsAPI = require2(translatorPackage).preferAPI !== "class";
1249
1251
  } catch {
1250
1252
  tagsAPI = true;
1251
1253
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marko/vite",
3
- "version": "5.0.9",
3
+ "version": "5.0.10",
4
4
  "description": "A Marko plugin for Vite",
5
5
  "keywords": [
6
6
  "loader",