Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/generators/web/utils/bundle.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import module from 'node:module';
import { join } from 'node:path';

import virtual from '@rollup/plugin-virtual';
Expand All @@ -10,8 +11,8 @@ import getConfig from '../../../utils/configuration/index.mjs';
// Resolve node_modules relative to this package (doc-kit), not cwd.
// This ensures modules are found when running from external directories.
const DOC_KIT_NODE_MODULES = join(
Comment thread
avivkeller marked this conversation as resolved.
Outdated
import.meta.dirname,
'../../../../node_modules'
module.findPackageJSON(new URL(import.meta.resolve('preact'))),
'../../../node_modules'
);
Comment thread
avivkeller marked this conversation as resolved.
Outdated

/**
Expand Down
Loading