progress on migrating to heex templates and font-icons

This commit is contained in:
Adam Piontek 2022-08-13 07:32:36 -04:00
parent d43daafdb7
commit 3eff955672
21793 changed files with 2161968 additions and 16895 deletions
assets_old/node_modules/babel-plugin-polyfill-regenerator

View file

@ -0,0 +1,22 @@
MIT License
Copyright (c) 2014-present Nicolò Ribaudo and other contributors
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View file

@ -0,0 +1,28 @@
# babel-plugin-polyfill-regenerator
## Install
Using npm:
```sh
npm install --save-dev babel-plugin-polyfill-regenerator
```
or using yarn:
```sh
yarn add babel-plugin-polyfill-regenerator --dev
```
## Usage
Add this plugin to your Babel configuration:
```json
{
"plugins": [["polyfill-regenerator", { "method": "usage-global" }]]
}
```
This package supports the `usage-pure`, `usage-global`, and `entry-global` methods.
When `entry-global` is used, it replaces imports to `regenerator-runtime`.

View file

@ -0,0 +1,43 @@
"use strict";
exports.__esModule = true;
exports.default = void 0;
var _helperDefinePolyfillProvider = _interopRequireDefault(require("@babel/helper-define-polyfill-provider"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const runtimeCompat = "#__secret_key__@babel/runtime__compatibility";
var _default = (0, _helperDefinePolyfillProvider.default)(({
debug
}, options) => {
const {
[runtimeCompat]: {
useBabelRuntime
} = {}
} = options;
const pureName = useBabelRuntime ? `${useBabelRuntime}/regenerator` : "regenerator-runtime";
return {
name: "regenerator",
polyfills: ["regenerator-runtime"],
usageGlobal(meta, utils) {
if (isRegenerator(meta)) {
debug("regenerator-runtime");
utils.injectGlobalImport("regenerator-runtime/runtime.js");
}
},
usagePure(meta, utils, path) {
if (isRegenerator(meta)) {
path.replaceWith(utils.injectDefaultImport(pureName, "regenerator-runtime"));
}
}
};
});
exports.default = _default;
const isRegenerator = meta => meta.kind === "global" && meta.name === "regeneratorRuntime";

View file

@ -0,0 +1,29 @@
{
"name": "babel-plugin-polyfill-regenerator",
"version": "0.1.6",
"description": "A Babel plugin to inject imports to regenerator-runtime",
"repository": {
"type": "git",
"url": "https://github.com/babel/babel-polyfills.git",
"directory": "packages/babel-plugin-polyfill-regenerator"
},
"license": "MIT",
"publishConfig": {
"access": "public"
},
"main": "lib/index.js",
"keywords": [
"babel-plugin"
],
"dependencies": {
"@babel/helper-define-polyfill-provider": "^0.1.5"
},
"devDependencies": {
"@babel/core": "^7.13.0",
"@babel/helper-plugin-test-runner": "^7.10.4"
},
"peerDependencies": {
"@babel/core": "^7.0.0-0"
},
"gitHead": "cca90e89debf689aff23e982f8a30bc3b512c573"
}