Skip to content

add ability to dc.require the obsidian package#160

Open
GamerGirlandCo wants to merge 1 commit intofeat/modal-componentfrom
feat/require-obsidian
Open

add ability to dc.require the obsidian package#160
GamerGirlandCo wants to merge 1 commit intofeat/modal-componentfrom
feat/require-obsidian

Conversation

@GamerGirlandCo
Copy link
Collaborator

No description provided.

@ljavuras
Copy link

ljavuras commented Jan 23, 2026

Why not just expose the require accessible to plugins?

        if (typeof path === "string" && !/.*\.[tj]sx?$/.test(path)) {
            return require(path);
        }

Would be really useful other than obsidian module:

await dc.require('@codemirror/view')

@GamerGirlandCo GamerGirlandCo changed the base branch from master to feat/modal-component February 11, 2026 19:36
@GamerGirlandCo GamerGirlandCo force-pushed the feat/require-obsidian branch from a8371ec to 626d437 Compare March 15, 2026 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants