mirror of
https://github.com/systemjs/systemjs.git
synced 2026-01-18 14:53:14 +00:00
If files begin with a BOM (U+FEFF) the AMD and CommonJS detection will fail. I noticed this when using the SystemJS builder: https://github.com/systemjs/builder/issues/25
5 lines
106 B
JavaScript
5 lines
106 B
JavaScript
define([], function () {
|
|
// file starts with a byte order mark (BOM)
|
|
return { amd: true };
|
|
});
|