Fast and powerful CSV (delimited text) parser that gracefully handles large files and malformed input
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import { terser } from "rollup-plugin-terser";
|
|
|
|
|
|
|
|
export default {
|
|
|
|
input: 'papaparse.mjs',
|
|
|
|
output: [
|
|
|
|
{
|
|
|
|
name: 'Papa',
|
|
|
|
file: 'papaparse.js',
|
|
|
|
format: 'umd'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Papa',
|
|
|
|
file: 'papaparse.min.js',
|
|
|
|
format: 'umd',
|
|
|
|
plugins: [terser()]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
plugins: [
|
|
|
|
{
|
|
|
|
resolveImportMeta(prop, { format }) {
|
|
|
|
if (format === 'umd') {
|
|
|
|
if (prop === 'url') {
|
|
|
|
return 'global && global.document && global.document.currentScript && global.document.currentScript.src';
|
|
|
|
}
|
|
|
|
if (prop === 'papaIsUMD') {
|
|
|
|
return 'true';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|