@danielx/civet 0.6.90 → 0.6.92
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/README.md +1 -2
- package/dist/astro.d.mts +15 -0
- package/dist/astro.d.ts +15 -0
- package/dist/astro.js +457 -0
- package/dist/astro.mjs +22 -0
- package/dist/browser.js +864 -742
- package/dist/esbuild.js +6 -1
- package/dist/main.js +864 -742
- package/dist/main.mjs +864 -742
- package/dist/rollup.js +6 -1
- package/dist/unplugin-shared.mjs +6 -1
- package/dist/unplugin.js +6 -1
- package/dist/vite.js +6 -1
- package/dist/webpack.js +6 -1
- package/package.json +5 -1
package/dist/esbuild.js
CHANGED
|
@@ -42,6 +42,11 @@ var fs = __toESM(require("fs"));
|
|
|
42
42
|
var import_path = __toESM(require("path"));
|
|
43
43
|
var tsvfs = __toESM(require("@typescript/vfs"));
|
|
44
44
|
var import_os = __toESM(require("os"));
|
|
45
|
+
|
|
46
|
+
// src/constants.ts
|
|
47
|
+
var DEFAULT_EXTENSIONS = [".mjs", ".js", ".mts", ".ts", ".jsx", ".tsx", ".json"];
|
|
48
|
+
|
|
49
|
+
// src/index.ts
|
|
45
50
|
var isCivetTranspiled = /(\.civet)(\.[jt]sx)([?#].*)?$/;
|
|
46
51
|
var postfixRE = /[?#].*$/s;
|
|
47
52
|
var isWindows = import_os.default.platform() === "win32";
|
|
@@ -396,7 +401,7 @@ var rawPlugin = (options = {}, meta) => {
|
|
|
396
401
|
rootDir = import_path.default.resolve(process.cwd(), config.root ?? "");
|
|
397
402
|
if (implicitExtension) {
|
|
398
403
|
config.resolve ?? (config.resolve = {});
|
|
399
|
-
(_a = config.resolve).extensions ?? (_a.extensions =
|
|
404
|
+
(_a = config.resolve).extensions ?? (_a.extensions = DEFAULT_EXTENSIONS);
|
|
400
405
|
config.resolve.extensions.push(".civet");
|
|
401
406
|
}
|
|
402
407
|
},
|