Commit 8ab6649
Add custom Vite plugin to strip 'module' attribute from script tags (#11)
Summary:
- Introduced a new Vite plugin named 'strip-module-attr' that transforms script tags by replacing the 'type="module"' attribute with 'defer' to fix unidentified module type internally
Pull Request resolved: #11
Reviewed By: xuzhao9
Differential Revision: D76308714
Pulled By: FindHao
fbshipit-source-id: 93107d1a162126c55d9c9d159fa167031d573aae1 parent 2a29465 commit 8ab6649
2 files changed
+16
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
103 | 104 | | |
104 | | - | |
105 | 105 | | |
| 106 | + | |
106 | 107 | | |
| 108 | + | |
107 | 109 | | |
| 110 | + | |
108 | 111 | | |
109 | 112 | | |
110 | 113 | | |
111 | 114 | | |
112 | 115 | | |
113 | 116 | | |
114 | | - | |
115 | | - | |
116 | | - | |
| 117 | + | |
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
13 | 23 | | |
14 | 24 | | |
15 | 25 | | |
| |||
0 commit comments