@marko/vite 3.1.5 → 3.1.6
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/babel-plugin-cjs-interop.mjs +2 -2
- package/dist/{chunk-4NVOXZG5.mjs → chunk-AEF7OQDP.mjs} +1 -1
- package/dist/{chunk-HR4PYNIR.mjs → chunk-J6VIHWF4.mjs} +3 -3
- package/dist/{chunk-XYEU3RSG.mjs → chunk-Y3E2OP42.mjs} +1 -1
- package/dist/esbuild-plugin.js +3 -3
- package/dist/esbuild-plugin.mjs +1 -1
- package/dist/index.mjs +3 -3
- package/dist/resolve.js +2 -2
- package/dist/resolve.mjs +1 -1
- package/package.json +1 -1
|
@@ -23,15 +23,15 @@ function esbuildPlugin(compiler, config) {
|
|
|
23
23
|
build.onResolve({ filter: /\.marko\./ }, (args) => {
|
|
24
24
|
return {
|
|
25
25
|
namespace: "marko:virtual",
|
|
26
|
-
path: path.resolve(args.resolveDir, args.path)
|
|
26
|
+
path: path.resolve(args.resolveDir, args.path),
|
|
27
|
+
external: isScan
|
|
27
28
|
};
|
|
28
29
|
});
|
|
29
30
|
build.onLoad(
|
|
30
31
|
{ filter: /\.marko\./, namespace: "marko:virtual" },
|
|
31
32
|
(args) => ({
|
|
32
33
|
contents: virtualFiles.get(args.path).code,
|
|
33
|
-
loader: path.extname(args.path).slice(1)
|
|
34
|
-
external: isScan
|
|
34
|
+
loader: path.extname(args.path).slice(1)
|
|
35
35
|
})
|
|
36
36
|
);
|
|
37
37
|
build.onLoad({ filter: /\.marko$/ }, async (args) => {
|
package/dist/esbuild-plugin.js
CHANGED
|
@@ -55,15 +55,15 @@ function esbuildPlugin(compiler, config) {
|
|
|
55
55
|
build.onResolve({ filter: /\.marko\./ }, (args) => {
|
|
56
56
|
return {
|
|
57
57
|
namespace: "marko:virtual",
|
|
58
|
-
path: import_path.default.resolve(args.resolveDir, args.path)
|
|
58
|
+
path: import_path.default.resolve(args.resolveDir, args.path),
|
|
59
|
+
external: isScan
|
|
59
60
|
};
|
|
60
61
|
});
|
|
61
62
|
build.onLoad(
|
|
62
63
|
{ filter: /\.marko\./, namespace: "marko:virtual" },
|
|
63
64
|
(args) => ({
|
|
64
65
|
contents: virtualFiles.get(args.path).code,
|
|
65
|
-
loader: import_path.default.extname(args.path).slice(1)
|
|
66
|
-
external: isScan
|
|
66
|
+
loader: import_path.default.extname(args.path).slice(1)
|
|
67
67
|
})
|
|
68
68
|
);
|
|
69
69
|
build.onLoad({ filter: /\.marko$/ }, async (args) => {
|
package/dist/esbuild-plugin.mjs
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -7,17 +7,17 @@ import {
|
|
|
7
7
|
} from "./chunk-DCBMHGK4.mjs";
|
|
8
8
|
import {
|
|
9
9
|
plugin
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AEF7OQDP.mjs";
|
|
11
11
|
import {
|
|
12
12
|
esbuildPlugin
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-J6VIHWF4.mjs";
|
|
14
14
|
import {
|
|
15
15
|
generateDocManifest,
|
|
16
16
|
generateInputDoc
|
|
17
17
|
} from "./chunk-2E5QX7AF.mjs";
|
|
18
18
|
import {
|
|
19
19
|
isCJSModule
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-Y3E2OP42.mjs";
|
|
21
21
|
import "./chunk-NTHVNXFC.mjs";
|
|
22
22
|
import {
|
|
23
23
|
server_entry_template_default
|
package/dist/resolve.js
CHANGED
|
@@ -33,7 +33,7 @@ __export(resolve_exports, {
|
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(resolve_exports);
|
|
35
35
|
var import_resolve = require("resolve.exports");
|
|
36
|
-
var
|
|
36
|
+
var import_resolve2 = __toESM(require("resolve"));
|
|
37
37
|
var import_path = __toESM(require("path"));
|
|
38
38
|
var import_fs = __toESM(require("fs"));
|
|
39
39
|
const exportsMainFile = `__package_exports__`;
|
|
@@ -59,7 +59,7 @@ function isCJSModule(id) {
|
|
|
59
59
|
return false;
|
|
60
60
|
}
|
|
61
61
|
function resolve(id, from, extensions, conditions) {
|
|
62
|
-
return
|
|
62
|
+
return import_resolve2.default.sync(id, {
|
|
63
63
|
basedir: import_path.default.dirname(from),
|
|
64
64
|
filename: from,
|
|
65
65
|
pathFilter,
|
package/dist/resolve.mjs
CHANGED