Ignore test files/folders in bundling
This commit is contained in:
Vendored
+6
@@ -41,6 +41,12 @@ function grabPageDirRecursively({ page_dir, include_server, }) {
|
||||
if (is_page_excluded) {
|
||||
continue;
|
||||
}
|
||||
if (full_page_path.match(/__test__/)) {
|
||||
continue;
|
||||
}
|
||||
if (page_name.match(/\.test\.(t|j)sx?/)) {
|
||||
continue;
|
||||
}
|
||||
if (page_name.match(/\.server\.tsx?/) && !include_server) {
|
||||
continue;
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@moduletrace/bunext",
|
||||
"version": "1.0.89",
|
||||
"version": "1.0.90",
|
||||
"main": "dist/index.js",
|
||||
"module": "index.ts",
|
||||
"dependencies": {
|
||||
|
||||
@@ -70,6 +70,14 @@ function grabPageDirRecursively({
|
||||
continue;
|
||||
}
|
||||
|
||||
if (full_page_path.match(/__test__/)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (page_name.match(/\.test\.(t|j)sx?/)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (page_name.match(/\.server\.tsx?/) && !include_server) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user