Skip to content

Relative paths #6

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

Closed
bpiwowar opened this issue Mar 16, 2017 · 1 comment
Closed

Relative paths #6

bpiwowar opened this issue Mar 16, 2017 · 1 comment

Comments

@bpiwowar
Copy link

Thanks for your webpack module!

I had a trouble with the regl that was using a relative path

  "browserify": {
    "transform": "browserify/transform"
  },

The error message I got was

ERROR in ./~/regl/dist/regl.js
Module build failed: Error: Cannot find module 'browserify/transform' from '[...]/node_modules/regl/dist'

As a quickfix I changed the path to ../browserify/transform but this is not satisfying - I am unsure how to modify your code to get this work seamlessly.

@hughsk
Copy link
Member

hughsk commented Mar 18, 2017

Aha! Good catch, thanks for the bug report.

Essentially, transforms in package.json were being resolved relative to the current file rather than the package.json file. Fix incoming 🎉

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

No branches or pull requests

2 participants