Skip to content

Commit 7be9195

Browse files
authored
testing for CI
1 parent 44ac50b commit 7be9195

1 file changed

Lines changed: 1 addition & 15 deletions

File tree

‎tools/doc/web.doc-kit.config.mjs‎

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// (out/doc/api): the HTML site, the JSON consumed by other tooling, and
33
// `llms.txt`.
44

5-
import { createRequire } from 'node:module';
65
import { fileURLToPath } from 'node:url';
76

87
const root = new URL('../../', import.meta.url);
@@ -12,25 +11,12 @@ const fromRoot = (path) =>
1211

1312
const urlFromRoot = (path) => new URL(path, root).href;
1413

15-
const canBundle = async () => {
16-
try {
17-
await import('rolldown');
18-
createRequire(import.meta.url)('lightningcss');
19-
return true;
20-
} catch (error) {
21-
console.warn(
22-
`Skipping the HTML documentation: ${error.message.split('\n')[0]}`,
23-
);
24-
return false;
25-
}
26-
};
27-
2814
export default {
2915
extends: '@node-core/doc-kit/config',
3016

3117
target: [
3218
'legacy-json-all',
33-
...(await canBundle() ? ['section-pages'] : []),
19+
'section-pages',
3420
],
3521

3622
global: {

0 commit comments

Comments
 (0)