rollup-plugin-purs icon indicating copy to clipboard operation
rollup-plugin-purs copied to clipboard

The generated bundle is empty with Rollup 0.64.1 / PureScript 0.12.0

Open utkarshkukreti opened this issue 5 years ago • 4 comments

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?

utkarshkukreti avatar Aug 10 '18 17:08 utkarshkukreti

That sounds like very efficient dead code elimination.

i-am-the-slime avatar Feb 28 '19 09:02 i-am-the-slime

@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 avatar Feb 28 '19 10:02 Pauan

@Pauan I see there are five (!) PRs from @FrigoEU . Maybe he's interested?

i-am-the-slime avatar Mar 01 '19 10:03 i-am-the-slime

@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.

Pauan avatar Mar 01 '19 21:03 Pauan