File tree Expand file tree Collapse file tree 5 files changed +20
-14
lines changed
inspect-extension/components/script-json
packages/language-core/src Expand file tree Collapse file tree 5 files changed +20
-14
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "usingComponents" : {
3
+ "list" : " ../components/list"
4
+ }
5
+ }
Original file line number Diff line number Diff line change @@ -12,6 +12,6 @@ createPage({})
12
12
{
13
13
"usingComponents": {
14
14
"list": "../components/list"
15
- }
15
+ }
16
16
}
17
17
</script>
Original file line number Diff line number Diff line change
1
+ const wxConfig = { component : true , usingComponents : { } }
2
+ const aliConfig = { component : true , usingComponents : { } }
3
+ let finalConfig = null
4
+ if ( __mpx_mode__ === 'ali' ) {
5
+ finalConfig = aliConfig1
6
+ } else {
7
+ finalConfig = wxConfig
8
+ }
9
+ module . exports = finalConfig
Original file line number Diff line number Diff line change @@ -11,14 +11,13 @@ defineProps<{
11
11
}>()
12
12
</script>
13
13
14
- <style lang="css">
15
- .list {
16
-
17
- }
14
+ <style lang="stylus">
15
+ .list
16
+ color red
18
17
</style>
19
18
20
19
<script name="json">
21
- const wxConfig = { component: true, usingComponents: {} };
20
+ const wxConfig: any = { component: true, usingComponents: {} };
22
21
const aliConfig = { component: true, usingComponents: {} };
23
22
let finalConfig = null;
24
23
if (__mpx_mode__ === "ali") {
@@ -27,4 +26,4 @@ defineProps<{
27
26
finalConfig = wxConfig;
28
27
}
29
28
module.exports = finalConfig;
30
- </script>
29
+ </script>
Original file line number Diff line number Diff line change @@ -135,13 +135,6 @@ export function createMpxLanguagePlugin<T>(
135
135
? ts . ScriptKind . TSX
136
136
: ts . ScriptKind . TS ,
137
137
}
138
- } else if ( / j s o n _ ( j s | t s ) / . test ( code . id ) ) {
139
- const lang = code . id . slice ( 'json_' . length )
140
- return {
141
- code,
142
- extension : '.' + lang ,
143
- scriptKind : lang === 'js' ? ts . ScriptKind . JS : ts . ScriptKind . JSON ,
144
- }
145
138
}
146
139
}
147
140
} ,
You can’t perform that action at this time.
0 commit comments