@marko/vite 3.1.1 → 3.1.2
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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -416,7 +416,7 @@ function markoPlugin(opts = {}) {
|
|
|
416
416
|
cachedSources.set(id, source);
|
|
417
417
|
}
|
|
418
418
|
if (!query) {
|
|
419
|
-
if (/[\\/]node_modules[\\/]/.test(id) && getModuleType(id) === "cjs") {
|
|
419
|
+
if (!isBuild && /[\\/]node_modules[\\/]/.test(id) && getModuleType(id) === "cjs") {
|
|
420
420
|
const { ast } = await compiler.compile(source, id, {
|
|
421
421
|
cache,
|
|
422
422
|
ast: true,
|
package/dist/index.mjs
CHANGED
|
@@ -396,7 +396,7 @@ function markoPlugin(opts = {}) {
|
|
|
396
396
|
cachedSources.set(id, source);
|
|
397
397
|
}
|
|
398
398
|
if (!query) {
|
|
399
|
-
if (/[\\/]node_modules[\\/]/.test(id) && getModuleType(id) === "cjs") {
|
|
399
|
+
if (!isBuild && /[\\/]node_modules[\\/]/.test(id) && getModuleType(id) === "cjs") {
|
|
400
400
|
const { ast } = await compiler.compile(source, id, {
|
|
401
401
|
cache,
|
|
402
402
|
ast: true,
|