Skip to content

Commit 6be86b1

Browse files
committed
chore: remove recma plugin
1 parent d448ab8 commit 6be86b1

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

apps/website/recma-provide-components.ts

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import type { Plugin } from 'unified';
1+
/* eslint-disable @typescript-eslint/no-explicit-any */
22
import type {
3-
Program,
43
Node,
54
FunctionDeclaration,
65
VariableDeclarator,
@@ -13,9 +12,9 @@ function isNamedFunction(node: FunctionDeclaration, name: string) {
1312
return Boolean(node.id?.name === name);
1413
}
1514

16-
export const recmaProvideComponents: Plugin<any, Program> = () => {
15+
export const recmaProvideComponents = () => {
1716
let id = 0;
18-
return (tree) => {
17+
return (tree: { body: any[] }) => {
1918
const replacement = [];
2019
for (const _node of tree.body) {
2120
const node = _node as Node;
@@ -98,7 +97,7 @@ export const recmaProvideComponents: Plugin<any, Program> = () => {
9897
local: { type: 'Identifier', name: '_inlinedQrl' },
9998
},
10099
],
101-
source: { type: 'Literal', value: '@builder.io/qwik' },
100+
source: { type: 'Literal', value: '@qwik.dev/core' },
102101
});
103102
};
104103
};

apps/website/vite.config.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { qwikCity } from '@builder.io/qwik-city/vite';
22
import { qwikVite } from '@builder.io/qwik/optimizer';
33
import { defineConfig } from 'vite';
44
import tsconfigPaths from 'vite-tsconfig-paths';
5-
import { recmaProvideComponents } from './recma-provide-components';
65
import autoAPI from './auto-api';
76

87
export default defineConfig(async () => {
@@ -39,7 +38,7 @@ export default defineConfig(async () => {
3938
},
4039
mdx: {
4140
providerImportSource: '~/_state/MDXProvider',
42-
recmaPlugins: [recmaProvideComponents],
41+
// recmaPlugins: [recmaProvideComponents],
4342
rehypePlugins: [
4443
() => (tree) => {
4544
visit(tree, (node) => {

0 commit comments

Comments
 (0)