rollup-plugin-purs
rollup-plugin-purs copied to clipboard
The generated bundle is empty with Rollup 0.64.1 / PureScript 0.12.0
Hi,
I tried to use this tool in a project but I'm unable to get it to work. Here's how to reproduce the problem:
$ pulp init
$ echo '{}' > package.json
$ yarn add --dev rollup rollup-plugin-purs
Now add the following to rollup.config.js
:
import purs from 'rollup-plugin-purs';
export default {
entry: 'src/Main.purs',
dest: 'bundle.js',
format: 'iife',
sourceMap: true,
plugins: [purs()],
output: {
name: 'Foo',
},
};
and run yarn rollup -c
.
Here's what I get:
$ cat bundle.js
//# sourceMappingURL=bundle.js.map
$ cat bundle.js.map
{"version":3,"file":"bundle.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
Any ideas?
That sounds like very efficient dead code elimination.
@utkarshkukreti I'm sorry, I haven't used PureScript in a long time, so this project is currently unmaintained.
If anybody wants to take over maintenance, let me know!
@i-am-the-slime Always remember: the fastest, safest, most secure, most efficient, most environmentally friendly, most ethical, and bug-free program is always... the empty program!
@Pauan I see there are five (!) PRs from @FrigoEU . Maybe he's interested?
@i-am-the-slime Oh geez, I'm not sure how I missed those. I feel bad for leaving them silent for so long. I'll review them ASAP.
Yeah, if he's interested, I can make him a maintainer.