Copied from https://github.com/babel/babel/blob/main/packages/babel-types/src/validators/isReferenced.ts To avoid runtime dependency on @babel/types (which includes process references) This file should not change very often in babel but we may need to keep it up-to-date from time to time. https://github.com/babel/babel/blob/main/LICENSE
Analyze bindings in normal
<script> Note that
compileScriptSetup already analyzes bindings as part of its compilation process so this should only be used on single
<script setup> It requires the whole SFC descriptor because we need to handle and merge normal
<script setup> if both are present.
check defaults. If the default object is an object literal with only static properties, we can directly generate more optimized default declarations. Otherwise we will have to fallback to runtime merging.
Note: this comparison assumes the prev/next script are already identical, and only checks the special case where