aboutsummaryrefslogtreecommitdiffstats
path: root/build/tasks/lib/rollup-plugin-file-overrides.js
diff options
context:
space:
mode:
Diffstat (limited to 'build/tasks/lib/rollup-plugin-file-overrides.js')
-rw-r--r--build/tasks/lib/rollup-plugin-file-overrides.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/build/tasks/lib/rollup-plugin-file-overrides.js b/build/tasks/lib/rollup-plugin-file-overrides.js
deleted file mode 100644
index c494e4e5d..000000000
--- a/build/tasks/lib/rollup-plugin-file-overrides.js
+++ /dev/null
@@ -1,24 +0,0 @@
-"use strict";
-
-/**
- * A Rollup plugin accepting a file overrides map and changing
- * module sources to the overridden ones where provided. Files
- * without overrides are loaded from disk.
- *
- * @param {Map<string, string>} fileOverrides
- */
-module.exports = ( fileOverrides ) => {
- return {
- name: "jquery-file-overrides",
- load( id ) {
- if ( fileOverrides.has( id ) ) {
-
- // Replace the module by a fake source.
- return fileOverrides.get( id );
- }
-
- // Handle this module via the file system.
- return null;
- }
- };
-};