Using the ES6 module system's import syntax removes the need to use requirejs and the require function. SystemJS which Aurelia uses in the sample skeleton application can handle AMD formatted modules (which is the format Require uses).
That being said, rethinkdb would be on your server, not on the client, if I'm not mistaken.
0
doeck
On
Have you tried
import require from "require";
This would import the entire require module and doesn't expect an export named "require".
Using the ES6 module system's
import
syntax removes the need to use requirejs and therequire
function. SystemJS which Aurelia uses in the sample skeleton application can handle AMD formatted modules (which is the format Require uses).That being said, rethinkdb would be on your server, not on the client, if I'm not mistaken.