Skip to content

Conversation

@luisrudge
Copy link
Contributor

fix #211
fix #236

Hi friends 👋 I know it sucks to bundle two changes in one PR, but the superagent fix also includes fixing the json import, so I thought I'd give it a shot anyway 😬
If you want me to split the json fix and the superagent fix, just let me know.

In this PR

  • Added rollup-plugin-json to support importing json files
  • Added a test to test json importing
  • removed the useNodeResolve checks, because it was always true
  • Reordered the plugins in order to add the custom node/browser resolvers to run before the typescript compilation (this is the superagent fix).

Known issues

After I reordered the plugins, the build:babel script started complaining about the #!/usr/bin/env node line in the cli.js file. I don't know why that's the case :( I think I'll need some help to figure this one out. For now, I just removed it so it can build and test successfully.

@ForsakenHarmony
Copy link
Collaborator

Can you rebase?

@luisrudge
Copy link
Contributor Author

@ForsakenHarmony done

Copy link
Collaborator

@ForsakenHarmony ForsakenHarmony left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ForsakenHarmony
Copy link
Collaborator

Will merge in a bit

@developit
Copy link
Owner

Side note: how did we end up with useNodeResolve being unconditionally true?

@luisrudge
Copy link
Contributor Author

@developit ahaha.. well, it happens to all of us 😬

@developit
Copy link
Owner

I'm thinking there was some sort of a conditional in there that got cut at some point without me noticing haha

@luisrudge
Copy link
Contributor Author

@developit 3193787

@ForsakenHarmony ForsakenHarmony merged commit 1f23940 into developit:master Dec 4, 2018
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

Successfully merging this pull request may close these issues.

Can't use superagent Importing JSON

4 participants