Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Broken if not loaded using webpack due to require.context #159

Closed
alexmingoia opened this issue Dec 6, 2015 · 2 comments
Closed

Broken if not loaded using webpack due to require.context #159

alexmingoia opened this issue Dec 6, 2015 · 2 comments

Comments

@alexmingoia
Copy link
Contributor

require.context is not available unless transpiled using webpack. This breaks any module that depends on ipfs-api and uses another loader such as browserify, such as webui.

alexmingoia added a commit to alexmingoia/js-ipfs-api that referenced this issue Dec 6, 2015
Webpack's `require.context` is transpiled only if ipfs-api is loaded or bundled
using webpack. This broke modules that require ipfs-api and use browserify or
other bundlers.

Fixes ipfs-inactive#159
@dignifiedquire
Copy link
Contributor

If you don't want to transpile using webpack, why not just load the prebuilt files in dist?

@daviddias
Copy link
Contributor

@dignifiedquire being browserify compatible, or in another words, maintaining that available for the developers that have been using js-ipfs-api with browserify from the beginning, it is kind of important and nice to have.

Seems like @alexmingoia already fixed it #160

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

No branches or pull requests

3 participants