strip js import/export statements from raw post content (for rss, etc.)

This commit is contained in:
2025-04-27 17:51:36 -04:00
parent 4cc25f7ab9
commit c4f67f170b
10 changed files with 122 additions and 103 deletions
+6 -5
View File
@@ -24,8 +24,8 @@
"@giscus/react": "^3.1.0",
"@mdx-js/loader": "^3.1.0",
"@mdx-js/react": "^3.1.0",
"@next/bundle-analyzer": "15.4.0-canary.10",
"@next/mdx": "15.4.0-canary.10",
"@next/bundle-analyzer": "15.4.0-canary.11",
"@next/mdx": "15.4.0-canary.11",
"@octokit/graphql": "^8.2.2",
"@octokit/graphql-schema": "^15.26.0",
"@t3-oss/env-nextjs": "^0.13.0",
@@ -40,7 +40,7 @@
"geist": "^1.3.1",
"html-entities": "^2.6.0",
"lucide-react": "0.503.0",
"next": "15.4.0-canary.10",
"next": "15.4.0-canary.11",
"polished": "^4.3.1",
"prop-types": "^15.8.1",
"react": "19.1.0",
@@ -56,6 +56,7 @@
"react-tooltip": "^5.28.1",
"react-turnstile": "^1.1.4",
"react-tweet": "^3.2.2",
"recma-mdx-escape-missing-components": "^1.1.2",
"rehype-mdx-import-media": "^1.2.0",
"rehype-pretty-code": "^0.14.1",
"rehype-slug": "^6.0.0",
@@ -77,7 +78,7 @@
"@eslint/js": "^9.25.1",
"@jakejarvis/eslint-config": "^4.0.7",
"@types/mdx": "^2.0.13",
"@types/node": "^22.14.1",
"@types/node": "^22.15.2",
"@types/prop-types": "^15.7.14",
"@types/react": "^19.1.2",
"@types/react-dom": "^19.1.2",
@@ -85,7 +86,7 @@
"babel-plugin-react-compiler": "19.0.0-beta-af1b7da-20250417",
"cross-env": "^7.0.3",
"eslint": "^9.25.1",
"eslint-config-next": "15.4.0-canary.10",
"eslint-config-next": "15.4.0-canary.11",
"eslint-config-prettier": "^10.1.2",
"eslint-plugin-css-modules": "^2.12.0",
"eslint-plugin-import": "^2.31.0",