Skip to content

Commit

Permalink
Remove arrow function written to sandbox files
Browse files Browse the repository at this point in the history
So Angular Playground can be run in IE11.

(Provided IE11 polyfills are uncommented from polyfills.json, including
installing classlist.js)
  • Loading branch information
michaeljfuller committed Jan 12, 2018
1 parent a0d9e99 commit 0609340
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/angular-playground/cli/src/build-sandboxes.ts
Expand Up @@ -87,7 +87,7 @@ function buildSandboxFileContents(sandboxes: SandboxFileInformation[], home: str
// Normalize slash syntax for Windows/Unix filepaths
fullPath = slash(fullPath);
content.addLine(`case '${key}':`);
content.addLine(` return import( /* webpackMode: "${chunkMode}" */ '${fullPath}').then(_ => _.default.serialize('${key}'));`);
content.addLine(` return import( /* webpackMode: "${chunkMode}" */ '${fullPath}').then(function(_){ return _.default.serialize('${key}'); });`);
});
content.addLine(`}`);
content.addLine(`}`);
Expand Down

0 comments on commit 0609340

Please sign in to comment.