Skip to content
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

Bypass requirejs for specific scripts? #1851

Open
orestis opened this issue Jul 12, 2023 · 0 comments
Open

Bypass requirejs for specific scripts? #1851

orestis opened this issue Jul 12, 2023 · 0 comments

Comments

@orestis
Copy link

orestis commented Jul 12, 2023

Is there a way to bypass the entire require.js machinery for specific scripts that are not written to expect require.js? What I want to do is just load some scripts via a (dynamically inserted) <script> tag.

We are trying to integrate some new components in a legacy project that uses require.js and there's issues. Temporarily setting window.define to undefined solves some of the issues, but it seems there's some other machinery that interferes with e.g. setting global attributes after a script loads.

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

No branches or pull requests

1 participant