Skip to content

Commit 3bf16bc

Browse files
committed
fixup!
1 parent d5cecee commit 3bf16bc

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@node-core/doc-kit",
33
"type": "module",
4-
"version": "1.3.8",
4+
"version": "1.3.9",
55
"repository": {
66
"type": "git",
77
"url": "git+https://github.com/nodejs/doc-kit.git"

src/generators/web/utils/css.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ export default () => {
5959
}
6060

6161
// Read the raw CSS file from disk
62-
const source = await readFile(id, 'utf8');
62+
const source = await (lightningcss.resolver?.read ?? readFile)(
63+
id,
64+
'utf8'
65+
);
6366

6467
// Use Lightning CSS to compile the file with CSS Modules enabled
6568
const { code, exports } = await bundleAsync({

0 commit comments

Comments
 (0)