nextjs-cms 0.5.14 → 0.5.15
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.
|
@@ -29,7 +29,7 @@ export const loadConfigModule = () => {
|
|
|
29
29
|
unregister = register({ format: 'cjs', loader: 'ts' }).unregister;
|
|
30
30
|
}
|
|
31
31
|
catch {
|
|
32
|
-
throw new Error(`Unable to load TypeScript config '${found}'. Install 'esbuild-register'
|
|
32
|
+
throw new Error(`Unable to load TypeScript config '${found}'. Install 'esbuild-register', or provide lz.config.js/json.`);
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
const mod = safeRequire(found);
|
|
@@ -25,7 +25,7 @@ let tsLoaderRegistered = false;
|
|
|
25
25
|
* @returns The default export of the section file.
|
|
26
26
|
*/
|
|
27
27
|
const requireModuleRuntime = (absPath) => {
|
|
28
|
-
const isTs = absPath.endsWith('.
|
|
28
|
+
const isTs = absPath.endsWith('.ts') || absPath.endsWith('.cts') || absPath.endsWith('.mts');
|
|
29
29
|
if (isTs && !tsLoaderRegistered) {
|
|
30
30
|
try {
|
|
31
31
|
const { register } = safeRequire('esbuild-register/dist/node');
|