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.
27 lines
503 B
27 lines
503 B
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 (prop === 'url' && format === 'umd') { |
|
return 'global && global.document && global.document.currentScript && global.document.currentScript.src'; |
|
} |
|
} |
|
} |
|
] |
|
};
|
|
|