systemjs/test/tests/amd-module-bom.js
marc 3b1e768f59 Detection for files with byte order mark (BOM)
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
2014-11-19 08:38:22 +00:00

5 lines
106 B
JavaScript

define([], function () {
// file starts with a byte order mark (BOM)
return { amd: true };
});