diff --git a/build-system/compile/bundles.config.js b/build-system/compile/bundles.config.js index ca4db64788b4..10955c223719 100644 --- a/build-system/compile/bundles.config.js +++ b/build-system/compile/bundles.config.js @@ -122,7 +122,6 @@ exports.jsBundles = { toName: 'amp-viewer-host.max.js', minifiedName: 'amp-viewer-host.js', incudePolyfills: true, - extraGlobs: ['extensions/amp-viewer-integration/**/*.js'], skipUnknownDepsCheck: true, }, }, @@ -197,7 +196,6 @@ exports.jsBundles = { toName: 'amp-inabox.js', minifiedName: 'amp4ads-v0.js', includePolyfills: true, - extraGlobs: ['src/inabox/*.js', '3p/iframe-messaging-client.js'], }, }, }; diff --git a/build-system/tasks/dist.js b/build-system/tasks/dist.js index 840cbe546545..ad8ef7ca9e62 100644 --- a/build-system/tasks/dist.js +++ b/build-system/tasks/dist.js @@ -205,10 +205,6 @@ function buildLoginDone(version) { minify: true, minifiedName, aliasName, - extraGlobs: [ - `${buildDir}/amp-login-done-0.1.max.js`, - `${buildDir}/amp-login-done-dialog.js`, - ], }); } @@ -228,7 +224,6 @@ async function buildWebPushPublisherFiles() { includePolyfills: true, minify: true, minifiedName, - extraGlobs: [`${tempBuildDir}/*.js`], }); } } diff --git a/build-system/tasks/extension-helpers.js b/build-system/tasks/extension-helpers.js index f1e5425abdb8..c961cdebffa3 100644 --- a/build-system/tasks/extension-helpers.js +++ b/build-system/tasks/extension-helpers.js @@ -88,7 +88,6 @@ const DEFAULT_EXTENSION_SET = ['amp-loader', 'amp-auto-lightbox']; * version?: string, * hasCss?: boolean, * loadPriority?: string, - * extraGlobs?: Array, * binaries?: Array, * npm?: boolean, * wrapper?: string, @@ -365,7 +364,7 @@ async function doBuildExtension(extensions, extension, options) { const e = extensions[extension]; let o = {...options}; o = Object.assign(o, e); - await buildExtension(e.name, e.version, e.hasCss, o, e.extraGlobs); + await buildExtension(e.name, e.version, e.hasCss, o); } /** @@ -417,12 +416,10 @@ async function watchExtension(extDir, name, version, hasCss, options) { * the sub directory inside the extension directory * @param {boolean} hasCss Whether there is a CSS file for this extension. * @param {?Object} options - * @param {!Array=} extraGlobs * @return {!Promise} */ -async function buildExtension(name, version, hasCss, options, extraGlobs) { +async function buildExtension(name, version, hasCss, options) { options = options || {}; - options.extraGlobs = extraGlobs; if (options.compileOnlyCss && !hasCss) { return; } @@ -679,8 +676,6 @@ async function buildBentoExtensionJs(dir, name, options) { ? 'bento-element-minified' : 'bento-element-unminified', filename: await getBentoBuildFilename(dir, name, 'standalone', options), - // Include extension directory since our entrypoint may be elsewhere. - extraGlobs: [...(options.extraGlobs || []), `${dir}/**/*.js`], }); }