You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apologies if a GitHub issue is not the proper place for this question. I'm looking for documentation or examples for how one might import/require a JS module for use with mini_racer. Specifically, I'm working on a Rails app that uses webpacker to compile JS assets; my guess would be that I should be able to import a compiled pack for use by mini_racer.
The text was updated successfully, but these errors were encountered:
Interesting...is this not an expected use case for mini_racer? It seems like any time I attempt to load a file that has been compiled by webpack I get the error:
TypeError: Cannot read property 'prototype' of undefined
It is an expected use case, just we need more documentation. Browsers ship a DOM and a bunch of helpers, MiniRacer ships libv8 which is just the engine.
So I am open to writing some docs in the readme explaining how you attach a car to an engine but keep in mind there are lots of ways to build a car.
Apologies if a GitHub issue is not the proper place for this question. I'm looking for documentation or examples for how one might import/require a JS module for use with mini_racer. Specifically, I'm working on a Rails app that uses webpacker to compile JS assets; my guess would be that I should be able to import a compiled pack for use by mini_racer.
The text was updated successfully, but these errors were encountered: