marko-js / webpack

A loader for marko files and a plugin for universal bundling
MIT License
13 stars 4 forks source link

feat: automatically add cross-origin script attr when applicable #70

Closed DylanPiercey closed 2 years ago

DylanPiercey commented 2 years ago

Description

Automatically adds the crossoriginattribute to script tags when the set __webpack_public_path__ will be on a different origin.

Motivation and Context

This improves support for window.onerror when assets are loaded from another domain, eg cdn.

Checklist: