Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
const jQuery = require(“jquery”);
Object.defineProperty(window, “jQuery”, { value: jQuery });
Object.defineProperty(window, “$”, { value: jQuery });
const angular = require(“angular”);
Object.defineProperty(window, “angular”, { value: angular });

This comment has been minimized.

Copy link

rgeraldporter commented Jun 27, 2019

Thanks. FYI the quotes here seem to be special quotes, not normal double-quotes. Fix here:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.