File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,19 @@ export const styles: string[] = [
23
23
}
24
24
```
25
25
26
+ ``` ts title="index.ts"
27
+ export const webpackModules: Record <string , ExtensionWebpackModule > = {
28
+ something: {
29
+ dependencies: [
30
+ {
31
+ ext: " markdown" ,
32
+ id: " markdown"
33
+ }
34
+ ]
35
+ }
36
+ };
37
+ ```
38
+
26
39
``` ts title="webpackModules/something.ts"
27
40
import * as markdown from " @moonlight-mod/wp/markdown_markdown" ;
28
41
@@ -55,7 +68,7 @@ Dispatcher.subscribe("MESSAGE_CREATE", (data) => {
55
68
56
69
## Custom React component
57
70
58
- ``` ts name ="index.ts"
71
+ ``` ts title ="index.ts"
59
72
export const webpackModules: Record <string , ExtensionWebpackModule > = {
60
73
element: {
61
74
dependencies: [
@@ -67,7 +80,7 @@ export const webpackModules: Record<string, ExtensionWebpackModule> = {
67
80
};
68
81
```
69
82
70
- ``` ts name ="webpackModules/element.tsx"
83
+ ``` ts title ="webpackModules/element.tsx"
71
84
import React from " @moonlight-mod/wp/react" ;
72
85
73
86
export default function MyElement() {
You can’t perform that action at this time.
0 commit comments