mirror of
https://github.com/kev-cao/obsidian-flexical.git
synced 2026-07-22 07:48:36 +00:00
react-dom emits three dynamic createElement("script") calls (its
hoistable-resource code paths) that Obsidian's review scanner flags,
even though the plugin never triggers them. Alias react/react-dom to
preact/compat at bundle time so those code paths are gone; also shrinks
main.js from ~4MB to ~130K.
Co-Authored-By: roachdev-claude <roachdev-claude-bot@cockroachlabs.com>
41 lines
1 KiB
JSON
41 lines
1 KiB
JSON
{
|
|
"name": "obsidian-sample-plugin",
|
|
"version": "1.0.1",
|
|
"description": "This is a sample plugin for Obsidian (https://obsidian.md)",
|
|
"main": "main.js",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "node esbuild.config.mjs",
|
|
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
|
|
"version": "node version-bump.mjs && git add manifest.json versions.json",
|
|
"lint": "eslint ."
|
|
},
|
|
"keywords": [],
|
|
"license": "0-BSD",
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.39.4",
|
|
"@types/micromatch": "^4.0.10",
|
|
"@types/node": "^22.15.17",
|
|
"@types/react": "^19.2.17",
|
|
"@types/react-dom": "^19.2.3",
|
|
"esbuild": "0.25.5",
|
|
"eslint": "^9.39.4",
|
|
"eslint-plugin-obsidianmd": "^0.3.0",
|
|
"globals": "^17.6.0",
|
|
"jiti": "^2.6.1",
|
|
"obsidian": "latest",
|
|
"preact": "^10.29.2",
|
|
"typescript": "^5.8.3",
|
|
"typescript-eslint": "^8.59.1"
|
|
},
|
|
"dependencies": {
|
|
"micromatch": "^4.0.8",
|
|
"nanoid": "^5.1.11",
|
|
"react": "^19.2.7",
|
|
"react-dom": "^19.2.7",
|
|
"vanilla-calendar-pro": "^3.1.0"
|
|
},
|
|
"allowScripts": {
|
|
"esbuild@0.25.5": true
|
|
}
|
|
}
|