(code, id)
| 179 | name: 'remove-worker-inline', |
| 180 | enforce: 'pre', |
| 181 | transform(code, id) { |
| 182 | if (!disableWorkerInlining) return; |
| 183 | if (/\.(js|ts|jsx|tsx)$/.test(id)) { |
| 184 | return { |
| 185 | code: code.replace(/\?worker&inline/g, '?worker'), |
| 186 | map: null, |
| 187 | }; |
| 188 | } |
| 189 | }, |
| 190 | }, |
| 191 | ...plugins, |
| 192 | ], |