@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.
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  plugin
3
- } from "./chunk-4NVOXZG5.mjs";
4
- import "./chunk-XYEU3RSG.mjs";
3
+ } from "./chunk-AEF7OQDP.mjs";
4
+ import "./chunk-Y3E2OP42.mjs";
5
5
  export {
6
6
  plugin as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  isCJSModule,
3
3
  resolve
4
- } from "./chunk-XYEU3RSG.mjs";
4
+ } from "./chunk-Y3E2OP42.mjs";
5
5
 
6
6
  // src/babel-plugin-cjs-interop.ts
7
7
  import * as t from "@babel/types";
@@ -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) => {
@@ -1,6 +1,6 @@
1
1
  // src/resolve.ts
2
2
  import { exports } from "resolve.exports";
3
- import * as Resolve from "resolve";
3
+ import Resolve from "resolve";
4
4
  import path from "path";
5
5
  import fs from "fs";
6
6
  var exportsMainFile = `__package_exports__`;
@@ -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) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  esbuildPlugin
3
- } from "./chunk-HR4PYNIR.mjs";
3
+ } from "./chunk-J6VIHWF4.mjs";
4
4
  export {
5
5
  esbuildPlugin as default
6
6
  };
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-4NVOXZG5.mjs";
10
+ } from "./chunk-AEF7OQDP.mjs";
11
11
  import {
12
12
  esbuildPlugin
13
- } from "./chunk-HR4PYNIR.mjs";
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-XYEU3RSG.mjs";
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 Resolve = __toESM(require("resolve"));
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 Resolve.sync(id, {
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
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  isCJSModule,
3
3
  resolve
4
- } from "./chunk-XYEU3RSG.mjs";
4
+ } from "./chunk-Y3E2OP42.mjs";
5
5
  export {
6
6
  isCJSModule,
7
7
  resolve
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": "3.1.5",
4
+ "version": "3.1.6",
5
5
  "author": "Dylan Piercey <dpiercey@ebay.com>",
6
6
  "bugs": "https://github.com/marko-js/vite/issues",
7
7
  "dependencies": {