Skip to content

Bypass requirejs for specific scripts? #1851

@orestis

Description

@orestis

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions