Skip to content

Instantly share code, notes, and snippets.

View gzzhanghao's full-sized avatar
💭
I may be slow to respond.

Jason gzzhanghao

💭
I may be slow to respond.
View GitHub Profile
// Output:
/*
`key` does not work on <slot> because slots are abstract outlets and can possibly expand into multiple elements. Use the key on a wrapping element instead.
1 |
2 | <div>
> 3 | <slot key="asdf" />
| ^^^^^^^^^^
4 | </div>
5 |
*/
{"generatedContent":"/******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t//
@gzzhanghao
gzzhanghao / inpput.map
Last active April 9, 2018 15:46
Babel inputSourceMap issue
{"version":3,"sources":["test.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA","sourcesContent":["export default {\n method() {\n this.deep.method(this.deep.prop);\n },\n}"]}
@gzzhanghao
gzzhanghao / index.css
Created August 23, 2023 10:57
Prevent iOS safari scroll on focus with pure CSS
input:focus {
animation: prevent-scroll 1ms;
}
@keyframes prevent-scroll {
from {
opacity: 0;
}
}