()
| 338 | } |
| 339 | |
| 340 | function forbidFBJSImports() { |
| 341 | return { |
| 342 | name: 'forbidFBJSImports', |
| 343 | resolveId(importee, importer) { |
| 344 | if (/^fbjs\//.test(importee)) { |
| 345 | throw new Error( |
| 346 | `Don't import ${importee} (found in ${importer}). ` + |
| 347 | `Use the utilities in packages/shared/ instead.` |
| 348 | ); |
| 349 | } |
| 350 | }, |
| 351 | }; |
| 352 | } |
| 353 | |
| 354 | function getPlugins( |
| 355 | entry, |