text: "use strict";
  // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
  // See LICENSE in the project root for license information.
  const os_1 = require("os");
  const loaderFn = (content) => {
      content = content.replace(/\\/g, '\\\\');
      content = content.replace(/'/g, '\\\'');
      content = content.replace(/\n/g, '\\n');
      content = content.replace(/\r/g, '\\r');
      const lines = [
          '(function (global) {',
          `  eval('${content}');`,
          '}.call(exports, (function() { return this; }())))'
      ];
      return lines.join(os_1.EOL);
  };
  module.exports = loaderFn;
  /* tslint:enable:export-name */
  //# sourceMappingURL=RawScriptLoader.js.map