Archived
1
0

First commit

This commit is contained in:
Sean Edmunds
2021-12-13 17:00:40 -06:00
commit 0584430b5c
36617 changed files with 4676695 additions and 0 deletions

21
node_modules/rollup-plugin-babel/src/helperPlugin.js generated vendored Normal file
View File

@@ -0,0 +1,21 @@
import { HELPERS } from './constants.js';
import { addNamed } from '@babel/helper-module-imports';
export default function importHelperPlugin() {
return {
pre(file) {
const cachedHelpers = {};
file.set('helperGenerator', name => {
if (!file.availableHelper(name)) {
return;
}
if (cachedHelpers[name]) {
return cachedHelpers[name];
}
return (cachedHelpers[name] = addNamed(file.path, name, HELPERS));
});
},
};
}