diff --git a/third_party/mustache/compile.sh b/third_party/mustache/compile.sh deleted file mode 100755 index 540440388041..000000000000 --- a/third_party/mustache/compile.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env bash -# Run this file with bash to convert the mustache library from UMD to ESM -# for inclusion into AMP. - -# Apply all the patches in third_party/mustache/patches/ -for patchfile in patches/*.patch -do - echo "Applying patch $patchfile" - patch < $patchfile -done diff --git a/third_party/mustache/patches/0000-remove-umd-wrapper.patch b/third_party/mustache/patches/0000-remove-umd-wrapper.patch deleted file mode 100644 index b24aba4fbef6..000000000000 --- a/third_party/mustache/patches/0000-remove-umd-wrapper.patch +++ /dev/null @@ -1,32 +0,0 @@ -diff --git a/third_party/mustache/mustache.js b/third_party/mustache/mustache.js -index fcc0fe678..869e4f36f 100644 ---- a/third_party/mustache/mustache.js -+++ b/third_party/mustache/mustache.js -@@ -5,16 +5,7 @@ - - /*global define: false Mustache: true*/ - --(function defineMustache (global, factory) { -- if (typeof exports === 'object' && exports && typeof exports.nodeName !== 'string') { -- factory(exports); // CommonJS -- } else if (typeof define === 'function' && define.amd) { -- define(['exports'], factory); // AMD -- } else { -- global.Mustache = {}; -- factory(Mustache); // script, wsh, asp -- } --}(this, function mustacheFactory (mustache) { -+function mustacheFactory (mustache) { - - var objectToString = Object.prototype.toString; - var isArray = Array.isArray || function isArrayPolyfill (object) { -@@ -649,4 +640,8 @@ - mustache.Context = Context; - mustache.Writer = Writer; - --})); -+}; -+ -+const Mustache = {}; -+mustacheFactory(Mustache); -+export default Mustache;