@akanjs/config 0.9.49 → 0.9.50
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/cjs/src/nextConfig.js +1 -1
- package/esm/src/nextConfig.js +1 -1
- package/package.json +1 -1
package/cjs/src/nextConfig.js
CHANGED
|
@@ -101,7 +101,7 @@ const withBase = (appName, config, libs, routes = []) => {
|
|
|
101
101
|
const watchOptions = config2.watchOptions;
|
|
102
102
|
config2.resolve.alias.canvas = false;
|
|
103
103
|
config2.resolve.alias.encoding = false;
|
|
104
|
-
const ignored = watchOptions?.ignored ? typeof watchOptions.ignored === "string" ? [watchOptions.ignored] : watchOptions.ignored : [];
|
|
104
|
+
const ignored = watchOptions?.ignored ? typeof watchOptions.ignored === "string" ? [watchOptions.ignored] : Array.isArray(watchOptions.ignored) ? watchOptions.ignored.filter((ignore) => typeof ignore === "string") : [] : [];
|
|
105
105
|
config2.watchOptions = {
|
|
106
106
|
...config2.watchOptions ?? {},
|
|
107
107
|
...{ ignored: [...ignored, "**/node_modules/**", "**/.git/**", "**/.next/**", "**/dist/**", "**/local/**"] }
|
package/esm/src/nextConfig.js
CHANGED
|
@@ -67,7 +67,7 @@ const withBase = (appName, config, libs, routes = []) => {
|
|
|
67
67
|
const watchOptions = config2.watchOptions;
|
|
68
68
|
config2.resolve.alias.canvas = false;
|
|
69
69
|
config2.resolve.alias.encoding = false;
|
|
70
|
-
const ignored = watchOptions?.ignored ? typeof watchOptions.ignored === "string" ? [watchOptions.ignored] : watchOptions.ignored : [];
|
|
70
|
+
const ignored = watchOptions?.ignored ? typeof watchOptions.ignored === "string" ? [watchOptions.ignored] : Array.isArray(watchOptions.ignored) ? watchOptions.ignored.filter((ignore) => typeof ignore === "string") : [] : [];
|
|
71
71
|
config2.watchOptions = {
|
|
72
72
|
...config2.watchOptions ?? {},
|
|
73
73
|
...{ ignored: [...ignored, "**/node_modules/**", "**/.git/**", "**/.next/**", "**/dist/**", "**/local/**"] }
|