geddy / model

Datastore-agnostic ORM in JavaScript
265 stars 55 forks source link

Fix failing require with webpack #234

Closed SimonDegraeve closed 9 years ago

SimonDegraeve commented 9 years ago

I am using model in an isomorphic app, and this path.join(__dirname, info.path) fails because webpack transform __dirname into /. So the failing result is ctor = require('/memory/index').Adapter; (notice the absolute path).

mde commented 9 years ago

Thank you very much!