@vixt/core 0.5.0 → 0.5.1
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/node/index.mjs +2 -2
- package/package.json +1 -1
package/dist/node/index.mjs
CHANGED
|
@@ -128,7 +128,7 @@ async function applyLayerModules(layers) {
|
|
|
128
128
|
for (const m of modulesDirs.reverse()) {
|
|
129
129
|
if (fs.existsSync(m)) {
|
|
130
130
|
const files = fs.readdirSync(m);
|
|
131
|
-
for (const f of files) {
|
|
131
|
+
for (const f of files.filter((f2) => /(?:t|j)s$/.test(f2))) {
|
|
132
132
|
const p = path.resolve(m, f);
|
|
133
133
|
const module = await import(
|
|
134
134
|
/* @vite-ignore */
|
|
@@ -414,7 +414,7 @@ function generatePlugins(vixt) {
|
|
|
414
414
|
let i = 0;
|
|
415
415
|
for (const pluginsDir of pluginsDirs.reverse()) {
|
|
416
416
|
const files = fs.existsSync(pluginsDir) ? fs.readdirSync(pluginsDir) : [];
|
|
417
|
-
for (const f of files) {
|
|
417
|
+
for (const f of files.filter((f2) => /(?:t|j)sx?$/.test(f2))) {
|
|
418
418
|
const p = path.resolve(pluginsDir, f);
|
|
419
419
|
const pluginName = `__plugin_${i}`;
|
|
420
420
|
pluginsImportTemplate += `import ${pluginName} from '${p}'
|