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

Don't AMD transform non-module scripts. #146

Merged
merged 1 commit into from
Apr 16, 2018
Merged

Commits on Apr 16, 2018

  1. Don't AMD transform non-module scripts.

    We now pay more attention to whether an HTML script has type=module via
    the HTML splitter, and only run the AMD transform on those that do.
    
    For external scripts, we now only run the AMD transform if the file
    looks like a module based on whether it has import or export statements.
    Babel 7 can do this for us with the "unambiguous" sourceType.
    aomarks committed Apr 16, 2018
    Configuration menu
    Copy the full SHA
    847a363 View commit details
    Browse the repository at this point in the history