@motion-script/core / parseData
Function: parseData()
parseData(
file,_options?):DataRecord[]
Defined in: util/csv.ts:76
parseData only ever runs as an inlined literal — the
@motion-script/vite-plugin build-time macro replaces
parseData("file.csv") call sites with the already-parsed rows before this
body ever executes. This implementation exists purely so the call
type-checks and so an unresolved call site (missing plugin, or a
non-literal argument the macro couldn't statically inline) fails loudly
instead of silently returning nothing.
Parameters
file
string