Skip to content

Webpack Support #125

Description

@ilyaigpetrov

Webpack documentation suggests using transform-loader for converting browserify transforms to webpack loaders, but when started it throws error:
Error: It appears that you're trying to require sheetify in the browser but it wasn't caught by the browserify transform. Either the transform has not been enabled, or the require statement could not be statically resolved..
I guess it is because of browser field in the package.json which is used for:

...the entry point when the module is packaged by a bundler for browser use.

So webpack2 bundles packages for a browser use, that seems logical to use browser field and sheetify refuses to expose it. Who's fault is it? How to fix it?

Update

I don't think that fixing browser field will be enough because webpack2 won't be able to convert const fs = require('fs') in your index.js.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions