@marko/vite 2.4.2 → 2.4.3

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/index.js CHANGED
@@ -61,7 +61,8 @@ const thisFile = typeof __filename === "string" ? __filename : (0, import_url.fi
61
61
  function markoPlugin(opts = {}) {
62
62
  var _a;
63
63
  let compiler;
64
- const { runtimeId, basePathVar, linked = true } = opts;
64
+ let { linked = true } = opts;
65
+ const { runtimeId, basePathVar } = opts;
65
66
  const baseConfig = {
66
67
  cache,
67
68
  runtimeId,
@@ -141,6 +142,9 @@ function markoPlugin(opts = {}) {
141
142
  store = opts.store || new import_store.FileStore(
142
143
  `marko-vite-${import_crypto.default.createHash("SHA1").update(root).digest("hex")}`
143
144
  );
145
+ if (isTest) {
146
+ linked = false;
147
+ }
144
148
  if (linked && !registeredTag) {
145
149
  const transformer = import_path.default.resolve(
146
150
  thisFile,
package/dist/index.mjs CHANGED
@@ -41,7 +41,8 @@ var thisFile = typeof __filename === "string" ? __filename : fileURLToPath(impor
41
41
  function markoPlugin(opts = {}) {
42
42
  var _a;
43
43
  let compiler;
44
- const { runtimeId, basePathVar, linked = true } = opts;
44
+ let { linked = true } = opts;
45
+ const { runtimeId, basePathVar } = opts;
45
46
  const baseConfig = {
46
47
  cache,
47
48
  runtimeId,
@@ -121,6 +122,9 @@ function markoPlugin(opts = {}) {
121
122
  store = opts.store || new FileStore(
122
123
  `marko-vite-${crypto.createHash("SHA1").update(root).digest("hex")}`
123
124
  );
125
+ if (isTest) {
126
+ linked = false;
127
+ }
124
128
  if (linked && !registeredTag) {
125
129
  const transformer = path.resolve(
126
130
  thisFile,
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": "2.4.2",
4
+ "version": "2.4.3",
5
5
  "author": "Dylan Piercey <dpiercey@ebay.com>",
6
6
  "bugs": "https://github.com/marko-js/vite/issues",
7
7
  "dependencies": {