Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The generated bundle is empty with Rollup 0.64.1 / PureScript 0.12.0 #30

Open
utkarshkukreti opened this issue Aug 10, 2018 · 4 comments

Comments

@utkarshkukreti
Copy link

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?

@i-am-the-slime
Copy link

That sounds like very efficient dead code elimination.

@Pauan
Copy link
Owner

Pauan commented Feb 28, 2019

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

@i-am-the-slime
Copy link

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

@Pauan
Copy link
Owner

Pauan commented Mar 1, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants