Commit b17a15cc authored by 郭学岭's avatar 郭学岭

Initial commit

parent 5571d4e4
{
"presets": [
"@babel/preset-env",
"@babel/preset-react"
],
"plugins": [
"@babel/plugin-transform-runtime",
"@babel/plugin-proposal-class-properties"
]
}
# Project introduction..
## Project setup
```
npm i xxx
```
### Compiles for development
\ No newline at end of file
{"name": "audio_react",
"version": "1.0.3",
"description": "",
"main": "index.js",
"entry":"./src",
"output":"./lib",
"publicPath":"publicPath",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
}
// webpack 4+;
// 自动化多规则出入口配置;
const path = require('path');
const fs = require('fs');
const frameurl = './frameConfig/package.json';
const readme = './frameConfig/README.md';
const packageConfig = require(frameurl);
const frameConfig = {
entryPath: packageConfig.entry,
outputPath: packageConfig.output,
framename: packageConfig.name,
publicPath: packageConfig.publicPath,
};
let files = [],filesPathArr = {};
function getDirectories(filepath) {
if (fs.existsSync(filepath)) {
files = fs.readdirSync(filepath);
files.forEach(function (file, index) {
let newPath = filepath + '/' + file;
const filelit = file.split(".");
const surplus = filelit.slice(0, filelit.length - 1);
const filepathSplit = filepath.replace(frameConfig.entryPath, '');
const newFilePath = filepathSplit + '/' + surplus.join('.');
if (fs.statSync(newPath).isDirectory()) {
if (file != "assets") {
getDirectories(newPath);
}
} else {
if (file != '.DS_Store') {
filesPathArr[newFilePath] = newPath;
}
}
})
if (!fs.existsSync(frameConfig.outputPath)) {
fs.mkdirSync(frameConfig.outputPath);
}
const packageJson = fs.readFileSync(frameurl);
const readmeDoc = fs.readFileSync(readme);
fs.writeFileSync(path.resolve(frameConfig.outputPath, 'package.json'), packageJson);
fs.writeFileSync(path.resolve(frameConfig.outputPath, 'README.md'), readmeDoc);
return filesPathArr;
} else {
console.error('定义的入口路径不存在');
return [];
}
}
module.exports = {
entry: getDirectories(frameConfig.entryPath),
output: {
pathinfo: true,
filename: '[name].js',
chunkFilename: '[name].js',
path: path.resolve(__dirname, frameConfig.outputPath),
publicPath: frameConfig.publicPath,
library: frameConfig.framename,
libraryTarget: 'umd',
umdNamedDefine: true
}
}
\ No newline at end of file
/*! For license information please see Child.js.LICENSE.txt */
!function webpackUniversalModuleDefinition(root,factory){"object"==typeof exports&&"object"==typeof module?module.exports=factory(require("react")):"function"==typeof define&&define.amd?define("audio_react",["react"],factory):"object"==typeof exports?exports.audio_react=factory(require("react")):root.audio_react=factory(root.react)}(window,(function(__WEBPACK_EXTERNAL_MODULE__0__){return function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};return modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.l=!0,module.exports}return __webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.d=function(exports,name,getter){__webpack_require__.o(exports,name)||Object.defineProperty(exports,name,{enumerable:!0,get:getter})},__webpack_require__.r=function(exports){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__webpack_require__.t=function(value,mode){if(1&mode&&(value=__webpack_require__(value)),8&mode)return value;if(4&mode&&"object"==typeof value&&value&&value.__esModule)return value;var ns=Object.create(null);if(__webpack_require__.r(ns),Object.defineProperty(ns,"default",{enumerable:!0,value:value}),2&mode&&"string"!=typeof value)for(var key in value)__webpack_require__.d(ns,key,function(key){return value[key]}.bind(null,key));return ns},__webpack_require__.n=function(module){var getter=module&&module.__esModule?function getDefault(){return module.default}:function getModuleExports(){return module};return __webpack_require__.d(getter,"a",getter),getter},__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)},__webpack_require__.p="publicPath",__webpack_require__(__webpack_require__.s=6)}([function(module,exports){module.exports=__WEBPACK_EXTERNAL_MODULE__0__},,,,function(module,exports){module.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXd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NS40IDE1LjEgNTguMyAzNC45IDU4LjMgNTAuNi0uMSAxNS43LTIzIDM1LjYtNTguNCA1MC42ek0zMjAuOCA3OC40eiIvPgogICAgICAgIDxjaXJjbGUgY3g9IjQyMC45IiBjeT0iMjk2LjUiIHI9IjQ1LjciLz4KICAgICAgICA8cGF0aCBkPSJNNTIwLjUgNzguMXoiLz4KICAgIDwvZz4KPC9zdmc+Cg=="},function(module,exports,__webpack_require__){var content=__webpack_require__(10);"string"==typeof content&&(content=[[module.i,content,""]]);var options={hmr:!0,transform:void 0,insertInto:void 0};__webpack_require__(12)(content,options);content.locals&&(module.exports=content.locals)},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__),_assets_logo_svg__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4),_assets_logo_svg__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_assets_logo_svg__WEBPACK_IMPORTED_MODULE_1__);__webpack_require__(5);__webpack_exports__.default=function Child(props){var message=props.message;Object(react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((function(){console.log("子组件被渲染")}),[message]);var showMessage=Object(react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((function(){return message}),[message]);return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div",{style:{width:"200px",height:"80px",color:"white",position:"relative"}},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("img",{src:_assets_logo_svg__WEBPACK_IMPORTED_MODULE_1___default.a,alt:""}),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span",{id:"txt"},"这是子组件,你好",react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("em",null,showMessage)))}},,,,function(module,exports,__webpack_require__){(exports=__webpack_require__(11)(!1)).push([module.i,".App {\n text-align: left;\n font-size: 18px;\n}\n\nbutton {\n display: inline;\n border: 1px solid gray;\n text-align: center;\n border-radius: 5px;\n outline: none;\n margin-left: 5px;\n}\n\n#txt {\n position: absolute;\n top: 140px;\n left: 10px;\n animation: flut 2500ms infinite alternate;\n}\n\n#txt em{\n color:black;\n font-weight: bold;\n padding-left:10px;\n}\n\n@keyframes flut {\n from {\n left: 0;\n }\n to {\n left: 50px;\n color: rosybrown;\n }\n}",""]),module.exports=exports},function(module,exports,__webpack_require__){"use strict";module.exports=function(useSourceMap){var list=[];return list.toString=function toString(){return this.map((function(item){var content=function cssWithMappingToString(item,useSourceMap){var content=item[1]||"",cssMapping=item[3];if(!cssMapping)return content;if(useSourceMap&&"function"==typeof btoa){var sourceMapping=function toComment(sourceMap){var base64=btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))),data="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(base64);return"/*# ".concat(data," */")}(cssMapping),sourceURLs=cssMapping.sources.map((function(source){return"/*# sourceURL=".concat(cssMapping.sourceRoot||"").concat(source," */")}));return[content].concat(sourceURLs).concat([sourceMapping]).join("\n")}return[content].join("\n")}(item,useSourceMap);return item[2]?"@media ".concat(item[2]," {").concat(content,"}"):content})).join("")},list.i=function(modules,mediaQuery,dedupe){"string"==typeof modules&&(modules=[[null,modules,""]]);var alreadyImportedModules={};if(dedupe)for(var i=0;i<this.length;i++){var id=this[i][0];null!=id&&(alreadyImportedModules[id]=!0)}for(var _i=0;_i<modules.length;_i++){var item=[].concat(modules[_i]);dedupe&&alreadyImportedModules[item[0]]||(mediaQuery&&(item[2]?item[2]="".concat(mediaQuery," and ").concat(item[2]):item[2]=mediaQuery),list.push(item))}},list}},function(module,exports,__webpack_require__){var fn,memo,stylesInDom={},isOldIE=(fn=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===memo&&(memo=fn.apply(this,arguments)),memo}),getTarget=function(target,parent){return parent?parent.querySelector(target):document.querySelector(target)},getElement=function(fn){var memo={};return function(target,parent){if("function"==typeof target)return target();if(void 0===memo[target]){var styleTarget=getTarget.call(this,target,parent);if(window.HTMLIFrameElement&&styleTarget instanceof window.HTMLIFrameElement)try{styleTarget=styleTarget.contentDocument.head}catch(e){styleTarget=null}memo[target]=styleTarget}return memo[target]}}(),singleton=null,singletonCounter=0,stylesInsertedAtTop=[],fixUrls=__webpack_require__(13);function addStylesToDom(styles,options){for(var i=0;i<styles.length;i++){var item=styles[i],domStyle=stylesInDom[item.id];if(domStyle){domStyle.refs++;for(var j=0;j<domStyle.parts.length;j++)domStyle.parts[j](item.parts[j]);for(;j<item.parts.length;j++)domStyle.parts.push(addStyle(item.parts[j],options))}else{var parts=[];for(j=0;j<item.parts.length;j++)parts.push(addStyle(item.parts[j],options));stylesInDom[item.id]={id:item.id,refs:1,parts:parts}}}}function listToStyles(list,options){for(var styles=[],newStyles={},i=0;i<list.length;i++){var item=list[i],id=options.base?item[0]+options.base:item[0],part={css:item[1],media:item[2],sourceMap:item[3]};newStyles[id]?newStyles[id].parts.push(part):styles.push(newStyles[id]={id:id,parts:[part]})}return styles}function insertStyleElement(options,style){var target=getElement(options.insertInto);if(!target)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var lastStyleElementInsertedAtTop=stylesInsertedAtTop[stylesInsertedAtTop.length-1];if("top"===options.insertAt)lastStyleElementInsertedAtTop?lastStyleElementInsertedAtTop.nextSibling?target.insertBefore(style,lastStyleElementInsertedAtTop.nextSibling):target.appendChild(style):target.insertBefore(style,target.firstChild),stylesInsertedAtTop.push(style);else if("bottom"===options.insertAt)target.appendChild(style);else{if("object"!=typeof options.insertAt||!options.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var nextSibling=getElement(options.insertAt.before,target);target.insertBefore(style,nextSibling)}}function removeStyleElement(style){if(null===style.parentNode)return!1;style.parentNode.removeChild(style);var idx=stylesInsertedAtTop.indexOf(style);idx>=0&&stylesInsertedAtTop.splice(idx,1)}function createStyleElement(options){var style=document.createElement("style");if(void 0===options.attrs.type&&(options.attrs.type="text/css"),void 0===options.attrs.nonce){var nonce=function getNonce(){0;return __webpack_require__.nc}();nonce&&(options.attrs.nonce=nonce)}return addAttrs(style,options.attrs),insertStyleElement(options,style),style}function addAttrs(el,attrs){Object.keys(attrs).forEach((function(key){el.setAttribute(key,attrs[key])}))}function addStyle(obj,options){var style,update,remove,result;if(options.transform&&obj.css){if(!(result="function"==typeof options.transform?options.transform(obj.css):options.transform.default(obj.css)))return function(){};obj.css=result}if(options.singleton){var styleIndex=singletonCounter++;style=singleton||(singleton=createStyleElement(options)),update=applyToSingletonTag.bind(null,style,styleIndex,!1),remove=applyToSingletonTag.bind(null,style,styleIndex,!0)}else obj.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(style=function createLinkElement(options){var link=document.createElement("link");return void 0===options.attrs.type&&(options.attrs.type="text/css"),options.attrs.rel="stylesheet",addAttrs(link,options.attrs),insertStyleElement(options,link),link}(options),update=updateLink.bind(null,style,options),remove=function(){removeStyleElement(style),style.href&&URL.revokeObjectURL(style.href)}):(style=createStyleElement(options),update=applyToTag.bind(null,style),remove=function(){removeStyleElement(style)});return update(obj),function updateStyle(newObj){if(newObj){if(newObj.css===obj.css&&newObj.media===obj.media&&newObj.sourceMap===obj.sourceMap)return;update(obj=newObj)}else remove()}}module.exports=function(list,options){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(options=options||{}).attrs="object"==typeof options.attrs?options.attrs:{},options.singleton||"boolean"==typeof options.singleton||(options.singleton=isOldIE()),options.insertInto||(options.insertInto="head"),options.insertAt||(options.insertAt="bottom");var styles=listToStyles(list,options);return addStylesToDom(styles,options),function update(newList){for(var mayRemove=[],i=0;i<styles.length;i++){var item=styles[i];(domStyle=stylesInDom[item.id]).refs--,mayRemove.push(domStyle)}newList&&addStylesToDom(listToStyles(newList,options),options);for(i=0;i<mayRemove.length;i++){var domStyle;if(0===(domStyle=mayRemove[i]).refs){for(var j=0;j<domStyle.parts.length;j++)domStyle.parts[j]();delete stylesInDom[domStyle.id]}}}};var textStore,replaceText=(textStore=[],function(index,replacement){return textStore[index]=replacement,textStore.filter(Boolean).join("\n")});function applyToSingletonTag(style,index,remove,obj){var css=remove?"":obj.css;if(style.styleSheet)style.styleSheet.cssText=replaceText(index,css);else{var cssNode=document.createTextNode(css),childNodes=style.childNodes;childNodes[index]&&style.removeChild(childNodes[index]),childNodes.length?style.insertBefore(cssNode,childNodes[index]):style.appendChild(cssNode)}}function applyToTag(style,obj){var css=obj.css,media=obj.media;if(media&&style.setAttribute("media",media),style.styleSheet)style.styleSheet.cssText=css;else{for(;style.firstChild;)style.removeChild(style.firstChild);style.appendChild(document.createTextNode(css))}}function updateLink(link,options,obj){var css=obj.css,sourceMap=obj.sourceMap,autoFixUrls=void 0===options.convertToAbsoluteUrls&&sourceMap;(options.convertToAbsoluteUrls||autoFixUrls)&&(css=fixUrls(css)),sourceMap&&(css+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))))+" */");var blob=new Blob([css],{type:"text/css"}),oldSrc=link.href;link.href=URL.createObjectURL(blob),oldSrc&&URL.revokeObjectURL(oldSrc)}},function(module,exports){module.exports=function(css){var location="undefined"!=typeof window&&window.location;if(!location)throw new Error("fixUrls requires window.location");if(!css||"string"!=typeof css)return css;var baseUrl=location.protocol+"//"+location.host,currentDir=baseUrl+location.pathname.replace(/\/[^\/]*$/,"/");return css.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(fullMatch,origUrl){var newUrl,unquotedOrigUrl=origUrl.trim().replace(/^"(.*)"$/,(function(o,$1){return $1})).replace(/^'(.*)'$/,(function(o,$1){return $1}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(unquotedOrigUrl)?fullMatch:(newUrl=0===unquotedOrigUrl.indexOf("//")?unquotedOrigUrl:0===unquotedOrigUrl.indexOf("/")?baseUrl+unquotedOrigUrl:currentDir+unquotedOrigUrl.replace(/^\.\//,""),"url("+JSON.stringify(newUrl)+")")}))}}])}));
\ No newline at end of file
/*! !../../node_modules/css-loader/dist/cjs.js!./App.css */
/*! ../../node_modules/css-loader/dist/runtime/api.js */
/*! ../../node_modules/style-loader/lib/addStyles.js */
/*! ./assets/App.css */
/*! ./assets/logo.svg */
/*! ./urls */
/*! ModuleConcatenation bailout: Module is an entry point */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/*! all exports used */
/*! exports provided: default */
/*! exports used: default */
/*! exports used: default, useCallback, useEffect, useMemo, useState */
/*! no static exports found */
/*! react */
/*!**********************!*\
!*** ./src/Child.js ***!
\**********************/
/*!************************!*\
!*** external "react" ***!
\************************/
/*!****************************!*\
!*** ./src/assets/App.css ***!
\****************************/
/*!*****************************!*\
!*** ./src/assets/logo.svg ***!
\*****************************/
/*!***********************************************!*\
!*** ./node_modules/style-loader/lib/urls.js ***!
\***********************************************/
/*!****************************************************!*\
!*** ./node_modules/style-loader/lib/addStyles.js ***!
\****************************************************/
/*!*****************************************************!*\
!*** ./node_modules/css-loader/dist/runtime/api.js ***!
\*****************************************************/
/*!******************************************************************!*\
!*** ./node_modules/css-loader/dist/cjs.js!./src/assets/App.css ***!
\******************************************************************/
/*! For license information please see Hooky.js.LICENSE.txt */
!function webpackUniversalModuleDefinition(root,factory){"object"==typeof exports&&"object"==typeof module?module.exports=factory(require("react")):"function"==typeof define&&define.amd?define("audio_react",["react"],factory):"object"==typeof exports?exports.audio_react=factory(require("react")):root.audio_react=factory(root.react)}(window,(function(__WEBPACK_EXTERNAL_MODULE__0__){return function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};return modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.l=!0,module.exports}return __webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.d=function(exports,name,getter){__webpack_require__.o(exports,name)||Object.defineProperty(exports,name,{enumerable:!0,get:getter})},__webpack_require__.r=function(exports){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__webpack_require__.t=function(value,mode){if(1&mode&&(value=__webpack_require__(value)),8&mode)return value;if(4&mode&&"object"==typeof value&&value&&value.__esModule)return value;var ns=Object.create(null);if(__webpack_require__.r(ns),Object.defineProperty(ns,"default",{enumerable:!0,value:value}),2&mode&&"string"!=typeof value)for(var key in value)__webpack_require__.d(ns,key,function(key){return value[key]}.bind(null,key));return ns},__webpack_require__.n=function(module){var getter=module&&module.__esModule?function getDefault(){return module.default}:function getModuleExports(){return module};return __webpack_require__.d(getter,"a",getter),getter},__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)},__webpack_require__.p="publicPath",__webpack_require__(__webpack_require__.s=17)}([function(module,exports){module.exports=__WEBPACK_EXTERNAL_MODULE__0__},,,,function(module,exports){module.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA4NDEuOSA1OTUuMyI+CiAgICA8ZyBmaWxsPSIjNjFEQUZCIj4KICAgICAgICA8cGF0aCBkPSJNNjY2LjMgMjk2LjVjMC0zMi41LTQwLjctNjMuMy0xMDMuMS04Mi40IDE0LjQtNjMuNiA4LTExNC4yLTIwLjItMTMwLjQtNi41LTMuOC0xNC4xLTUuNi0yMi40LTUuNnYyMi4zYzQuNiAwIDguMy45IDExLjQgMi42IDEzLjYgNy44IDE5LjUgMzcuNSAxNC45IDc1LjctMS4xIDkuNC0yLjkgMTkuMy01LjEgMjkuNC0xOS42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yMi45LTM1LjYgNTguMy01MC42IDguNi0zLjcgMTgtNyAyNy43LTEwLjEgNS43IDE5LjYgMTMuMiA0MCAyMi41IDYwLjktOS4yIDIwLjgtMTYuNiA0MS4xLTIyLjIgNjAuNi05LjktMy4xLTE5LjMtNi41LTI4LTEwLjJ6TTMxMCA0OTBjLTEzLjYtNy44LTE5LjUtMzcuNS0xNC45LTc1LjcgMS4xLTkuNCAyLjktMTkuMyA1LjEtMjkuNCAxOS42IDQuOCA0MSA4LjUgNjMuNSAxMC45IDEzLjUgMTguNSAyNy41IDM1LjMgNDEuNiA1MC0zMi42IDMwLjMtNjMuMiA0Ni45LTg0IDQ2LjktNC41LS4xLTguMy0xLTExLjMtMi43em0yMzcuMi03Ni4yYzQuNyAzOC4yLTEuMSA2Ny45LTE0LjYgNzUuOC0zIDEuOC02LjkgMi42LTExLjUgMi42LTIwLjcgMC01MS40LTE2LjUtODQtNDYuNiAxNC0xNC43IDI4LTMxLjQgNDEuMy00OS45IDIyLjYtMi40IDQ0LTYuMSA2My42LTExIDIuMyAxMC4xIDQuMSAxOS44IDUuMiAyOS4xem0zOC41LTY2LjdjLTguNiAzLjctMTggNy0yNy43IDEwLjEtNS43LTE5LjYtMTMuMi00MC0yMi41LTYwLjkgOS4yLTIwLjggMTYuNi00MS4xIDIyLjItNjAuNiA5LjkgMy4xIDE5LjMgNi41IDI4LjEgMTAuMiAzNS40IDE1LjEgNTguMyAzNC45IDU4LjMgNTAuNi0uMSAxNS43LTIzIDM1LjYtNTguNCA1MC42ek0zMjAuOCA3OC40eiIvPgogICAgICAgIDxjaXJjbGUgY3g9IjQyMC45IiBjeT0iMjk2LjUiIHI9IjQ1LjciLz4KICAgICAgICA8cGF0aCBkPSJNNTIwLjUgNzguMXoiLz4KICAgIDwvZz4KPC9zdmc+Cg=="},function(module,exports,__webpack_require__){var content=__webpack_require__(10);"string"==typeof content&&(content=[[module.i,content,""]]);var options={hmr:!0,transform:void 0,insertInto:void 0};__webpack_require__(12)(content,options);content.locals&&(module.exports=content.locals)},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__),_assets_logo_svg__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4),_assets_logo_svg__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_assets_logo_svg__WEBPACK_IMPORTED_MODULE_1__);__webpack_require__(5);__webpack_exports__.default=function Child(props){var message=props.message;Object(react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((function(){console.log("子组件被渲染")}),[message]);var showMessage=Object(react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((function(){return message}),[message]);return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div",{style:{width:"200px",height:"80px",color:"white",position:"relative"}},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("img",{src:_assets_logo_svg__WEBPACK_IMPORTED_MODULE_1___default.a,alt:""}),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span",{id:"txt"},"这是子组件,你好",react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("em",null,showMessage)))}},function(module,exports,__webpack_require__){var arrayWithHoles=__webpack_require__(27),iterableToArrayLimit=__webpack_require__(28),unsupportedIterableToArray=__webpack_require__(29),nonIterableRest=__webpack_require__(31);module.exports=function _slicedToArray(arr,i){return arrayWithHoles(arr)||iterableToArrayLimit(arr,i)||unsupportedIterableToArray(arr,i)||nonIterableRest()}},,,function(module,exports,__webpack_require__){(exports=__webpack_require__(11)(!1)).push([module.i,".App {\n text-align: left;\n font-size: 18px;\n}\n\nbutton {\n display: inline;\n border: 1px solid gray;\n text-align: center;\n border-radius: 5px;\n outline: none;\n margin-left: 5px;\n}\n\n#txt {\n position: absolute;\n top: 140px;\n left: 10px;\n animation: flut 2500ms infinite alternate;\n}\n\n#txt em{\n color:black;\n font-weight: bold;\n padding-left:10px;\n}\n\n@keyframes flut {\n from {\n left: 0;\n }\n to {\n left: 50px;\n color: rosybrown;\n }\n}",""]),module.exports=exports},function(module,exports,__webpack_require__){"use strict";module.exports=function(useSourceMap){var list=[];return list.toString=function toString(){return this.map((function(item){var content=function cssWithMappingToString(item,useSourceMap){var content=item[1]||"",cssMapping=item[3];if(!cssMapping)return content;if(useSourceMap&&"function"==typeof btoa){var sourceMapping=function toComment(sourceMap){var base64=btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))),data="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(base64);return"/*# ".concat(data," */")}(cssMapping),sourceURLs=cssMapping.sources.map((function(source){return"/*# sourceURL=".concat(cssMapping.sourceRoot||"").concat(source," */")}));return[content].concat(sourceURLs).concat([sourceMapping]).join("\n")}return[content].join("\n")}(item,useSourceMap);return item[2]?"@media ".concat(item[2]," {").concat(content,"}"):content})).join("")},list.i=function(modules,mediaQuery,dedupe){"string"==typeof modules&&(modules=[[null,modules,""]]);var alreadyImportedModules={};if(dedupe)for(var i=0;i<this.length;i++){var id=this[i][0];null!=id&&(alreadyImportedModules[id]=!0)}for(var _i=0;_i<modules.length;_i++){var item=[].concat(modules[_i]);dedupe&&alreadyImportedModules[item[0]]||(mediaQuery&&(item[2]?item[2]="".concat(mediaQuery," and ").concat(item[2]):item[2]=mediaQuery),list.push(item))}},list}},function(module,exports,__webpack_require__){var fn,memo,stylesInDom={},isOldIE=(fn=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===memo&&(memo=fn.apply(this,arguments)),memo}),getTarget=function(target,parent){return parent?parent.querySelector(target):document.querySelector(target)},getElement=function(fn){var memo={};return function(target,parent){if("function"==typeof target)return target();if(void 0===memo[target]){var styleTarget=getTarget.call(this,target,parent);if(window.HTMLIFrameElement&&styleTarget instanceof window.HTMLIFrameElement)try{styleTarget=styleTarget.contentDocument.head}catch(e){styleTarget=null}memo[target]=styleTarget}return memo[target]}}(),singleton=null,singletonCounter=0,stylesInsertedAtTop=[],fixUrls=__webpack_require__(13);function addStylesToDom(styles,options){for(var i=0;i<styles.length;i++){var item=styles[i],domStyle=stylesInDom[item.id];if(domStyle){domStyle.refs++;for(var j=0;j<domStyle.parts.length;j++)domStyle.parts[j](item.parts[j]);for(;j<item.parts.length;j++)domStyle.parts.push(addStyle(item.parts[j],options))}else{var parts=[];for(j=0;j<item.parts.length;j++)parts.push(addStyle(item.parts[j],options));stylesInDom[item.id]={id:item.id,refs:1,parts:parts}}}}function listToStyles(list,options){for(var styles=[],newStyles={},i=0;i<list.length;i++){var item=list[i],id=options.base?item[0]+options.base:item[0],part={css:item[1],media:item[2],sourceMap:item[3]};newStyles[id]?newStyles[id].parts.push(part):styles.push(newStyles[id]={id:id,parts:[part]})}return styles}function insertStyleElement(options,style){var target=getElement(options.insertInto);if(!target)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var lastStyleElementInsertedAtTop=stylesInsertedAtTop[stylesInsertedAtTop.length-1];if("top"===options.insertAt)lastStyleElementInsertedAtTop?lastStyleElementInsertedAtTop.nextSibling?target.insertBefore(style,lastStyleElementInsertedAtTop.nextSibling):target.appendChild(style):target.insertBefore(style,target.firstChild),stylesInsertedAtTop.push(style);else if("bottom"===options.insertAt)target.appendChild(style);else{if("object"!=typeof options.insertAt||!options.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var nextSibling=getElement(options.insertAt.before,target);target.insertBefore(style,nextSibling)}}function removeStyleElement(style){if(null===style.parentNode)return!1;style.parentNode.removeChild(style);var idx=stylesInsertedAtTop.indexOf(style);idx>=0&&stylesInsertedAtTop.splice(idx,1)}function createStyleElement(options){var style=document.createElement("style");if(void 0===options.attrs.type&&(options.attrs.type="text/css"),void 0===options.attrs.nonce){var nonce=function getNonce(){0;return __webpack_require__.nc}();nonce&&(options.attrs.nonce=nonce)}return addAttrs(style,options.attrs),insertStyleElement(options,style),style}function addAttrs(el,attrs){Object.keys(attrs).forEach((function(key){el.setAttribute(key,attrs[key])}))}function addStyle(obj,options){var style,update,remove,result;if(options.transform&&obj.css){if(!(result="function"==typeof options.transform?options.transform(obj.css):options.transform.default(obj.css)))return function(){};obj.css=result}if(options.singleton){var styleIndex=singletonCounter++;style=singleton||(singleton=createStyleElement(options)),update=applyToSingletonTag.bind(null,style,styleIndex,!1),remove=applyToSingletonTag.bind(null,style,styleIndex,!0)}else obj.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(style=function createLinkElement(options){var link=document.createElement("link");return void 0===options.attrs.type&&(options.attrs.type="text/css"),options.attrs.rel="stylesheet",addAttrs(link,options.attrs),insertStyleElement(options,link),link}(options),update=updateLink.bind(null,style,options),remove=function(){removeStyleElement(style),style.href&&URL.revokeObjectURL(style.href)}):(style=createStyleElement(options),update=applyToTag.bind(null,style),remove=function(){removeStyleElement(style)});return update(obj),function updateStyle(newObj){if(newObj){if(newObj.css===obj.css&&newObj.media===obj.media&&newObj.sourceMap===obj.sourceMap)return;update(obj=newObj)}else remove()}}module.exports=function(list,options){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(options=options||{}).attrs="object"==typeof options.attrs?options.attrs:{},options.singleton||"boolean"==typeof options.singleton||(options.singleton=isOldIE()),options.insertInto||(options.insertInto="head"),options.insertAt||(options.insertAt="bottom");var styles=listToStyles(list,options);return addStylesToDom(styles,options),function update(newList){for(var mayRemove=[],i=0;i<styles.length;i++){var item=styles[i];(domStyle=stylesInDom[item.id]).refs--,mayRemove.push(domStyle)}newList&&addStylesToDom(listToStyles(newList,options),options);for(i=0;i<mayRemove.length;i++){var domStyle;if(0===(domStyle=mayRemove[i]).refs){for(var j=0;j<domStyle.parts.length;j++)domStyle.parts[j]();delete stylesInDom[domStyle.id]}}}};var textStore,replaceText=(textStore=[],function(index,replacement){return textStore[index]=replacement,textStore.filter(Boolean).join("\n")});function applyToSingletonTag(style,index,remove,obj){var css=remove?"":obj.css;if(style.styleSheet)style.styleSheet.cssText=replaceText(index,css);else{var cssNode=document.createTextNode(css),childNodes=style.childNodes;childNodes[index]&&style.removeChild(childNodes[index]),childNodes.length?style.insertBefore(cssNode,childNodes[index]):style.appendChild(cssNode)}}function applyToTag(style,obj){var css=obj.css,media=obj.media;if(media&&style.setAttribute("media",media),style.styleSheet)style.styleSheet.cssText=css;else{for(;style.firstChild;)style.removeChild(style.firstChild);style.appendChild(document.createTextNode(css))}}function updateLink(link,options,obj){var css=obj.css,sourceMap=obj.sourceMap,autoFixUrls=void 0===options.convertToAbsoluteUrls&&sourceMap;(options.convertToAbsoluteUrls||autoFixUrls)&&(css=fixUrls(css)),sourceMap&&(css+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))))+" */");var blob=new Blob([css],{type:"text/css"}),oldSrc=link.href;link.href=URL.createObjectURL(blob),oldSrc&&URL.revokeObjectURL(oldSrc)}},function(module,exports){module.exports=function(css){var location="undefined"!=typeof window&&window.location;if(!location)throw new Error("fixUrls requires window.location");if(!css||"string"!=typeof css)return css;var baseUrl=location.protocol+"//"+location.host,currentDir=baseUrl+location.pathname.replace(/\/[^\/]*$/,"/");return css.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(fullMatch,origUrl){var newUrl,unquotedOrigUrl=origUrl.trim().replace(/^"(.*)"$/,(function(o,$1){return $1})).replace(/^'(.*)'$/,(function(o,$1){return $1}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(unquotedOrigUrl)?fullMatch:(newUrl=0===unquotedOrigUrl.indexOf("//")?unquotedOrigUrl:0===unquotedOrigUrl.indexOf("/")?baseUrl+unquotedOrigUrl:currentDir+unquotedOrigUrl.replace(/^\.\//,""),"url("+JSON.stringify(newUrl)+")")}))}},,,,function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7),_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__),react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__),_Child__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(6);__webpack_require__(5);__webpack_exports__.default=function Hooky(){var _useState=Object(react__WEBPACK_IMPORTED_MODULE_1__.useState)(0),_useState2=_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_useState,2),count=_useState2[0],setCount=_useState2[1],_useState3=Object(react__WEBPACK_IMPORTED_MODULE_1__.useState)({name:"tom"}),_useState4=_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_useState3,2),user=_useState4[0],setInfor=_useState4[1];Object(react__WEBPACK_IMPORTED_MODULE_1__.useEffect)((function(){console.log("父页面被重新渲染!")}),[user]);var memo=Object(react__WEBPACK_IMPORTED_MODULE_1__.useMemo)((function(){return Math.random()*count}),[count]),getCount=Object(react__WEBPACK_IMPORTED_MODULE_1__.useCallback)((function(){return"count="+count}),[count]);return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div",{className:"App"},react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span",null,"当前值:",count," "),react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button",{onClick:function onClick(){return setCount(count+1)}},"点我+1"),react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button",{onClick:function clickme(){setCount(count-1)}},"点我-1")),react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span",null,"名字:",user.name," "),react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button",{onClick:function onClick(){return setInfor({name:"张三"})}},"点我改名")),react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span",null,"useMemo钩子:",memo," "),react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span",null,"useCallback钩子:",getCount()),react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Child__WEBPACK_IMPORTED_MODULE_2__.default,{message:count}))}},,,,,,,,,,function(module,exports){module.exports=function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}},function(module,exports){module.exports=function _iterableToArrayLimit(arr,i){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(arr)){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}}},function(module,exports,__webpack_require__){var arrayLikeToArray=__webpack_require__(30);module.exports=function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?arrayLikeToArray(o,minLen):void 0}}},function(module,exports){module.exports=function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}},function(module,exports){module.exports=function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}}])}));
\ No newline at end of file
/*! !../../node_modules/css-loader/dist/cjs.js!./App.css */
/*! ../../node_modules/css-loader/dist/runtime/api.js */
/*! ../../node_modules/style-loader/lib/addStyles.js */
/*! ./Child */
/*! ./arrayLikeToArray */
/*! ./arrayWithHoles */
/*! ./assets/App.css */
/*! ./assets/logo.svg */
/*! ./iterableToArrayLimit */
/*! ./nonIterableRest */
/*! ./unsupportedIterableToArray */
/*! ./urls */
/*! @babel/runtime/helpers/slicedToArray */
/*! ModuleConcatenation bailout: Module is an entry point */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/*! all exports used */
/*! exports provided: default */
/*! exports used: default */
/*! exports used: default, useCallback, useEffect, useMemo, useState */
/*! no static exports found */
/*! react */
/*!**********************!*\
!*** ./src/Child.js ***!
\**********************/
/*!**********************!*\
!*** ./src/Hooky.js ***!
\**********************/
/*!************************!*\
!*** external "react" ***!
\************************/
/*!****************************!*\
!*** ./src/assets/App.css ***!
\****************************/
/*!*****************************!*\
!*** ./src/assets/logo.svg ***!
\*****************************/
/*!***********************************************!*\
!*** ./node_modules/style-loader/lib/urls.js ***!
\***********************************************/
/*!****************************************************!*\
!*** ./node_modules/style-loader/lib/addStyles.js ***!
\****************************************************/
/*!*****************************************************!*\
!*** ./node_modules/css-loader/dist/runtime/api.js ***!
\*****************************************************/
/*!**************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
\**************************************************************/
/*!***************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
\***************************************************************/
/*!****************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
\****************************************************************/
/*!*****************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
\*****************************************************************/
/*!******************************************************************!*\
!*** ./node_modules/css-loader/dist/cjs.js!./src/assets/App.css ***!
\******************************************************************/
/*!*********************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
\*********************************************************************/
/*!***************************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
\***************************************************************************/
# Project introduction..
## Project setup
```
npm i xxx
```
### Compiles for development
\ No newline at end of file
/*! For license information please see index.js.LICENSE.txt */
!function webpackUniversalModuleDefinition(root,factory){"object"==typeof exports&&"object"==typeof module?module.exports=factory(require("react")):"function"==typeof define&&define.amd?define("audio_react",["react"],factory):"object"==typeof exports?exports.audio_react=factory(require("react")):root.audio_react=factory(root.react)}(window,(function(__WEBPACK_EXTERNAL_MODULE__0__){return function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};return modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.l=!0,module.exports}return __webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.d=function(exports,name,getter){__webpack_require__.o(exports,name)||Object.defineProperty(exports,name,{enumerable:!0,get:getter})},__webpack_require__.r=function(exports){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__webpack_require__.t=function(value,mode){if(1&mode&&(value=__webpack_require__(value)),8&mode)return value;if(4&mode&&"object"==typeof value&&value&&value.__esModule)return value;var ns=Object.create(null);if(__webpack_require__.r(ns),Object.defineProperty(ns,"default",{enumerable:!0,value:value}),2&mode&&"string"!=typeof value)for(var key in value)__webpack_require__.d(ns,key,function(key){return value[key]}.bind(null,key));return ns},__webpack_require__.n=function(module){var getter=module&&module.__esModule?function getDefault(){return module.default}:function getModuleExports(){return module};return __webpack_require__.d(getter,"a",getter),getter},__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)},__webpack_require__.p="publicPath",__webpack_require__(__webpack_require__.s=65)}({0:function(module,exports){module.exports=__WEBPACK_EXTERNAL_MODULE__0__},10:function(module,exports,__webpack_require__){(exports=__webpack_require__(11)(!1)).push([module.i,".App {\n text-align: left;\n font-size: 18px;\n}\n\nbutton {\n display: inline;\n border: 1px solid gray;\n text-align: center;\n border-radius: 5px;\n outline: none;\n margin-left: 5px;\n}\n\n#txt {\n position: absolute;\n top: 140px;\n left: 10px;\n animation: flut 2500ms infinite alternate;\n}\n\n#txt em{\n color:black;\n font-weight: bold;\n padding-left:10px;\n}\n\n@keyframes flut {\n from {\n left: 0;\n }\n to {\n left: 50px;\n color: rosybrown;\n }\n}",""]),module.exports=exports},11:function(module,exports,__webpack_require__){"use strict";module.exports=function(useSourceMap){var list=[];return list.toString=function toString(){return this.map((function(item){var content=function cssWithMappingToString(item,useSourceMap){var content=item[1]||"",cssMapping=item[3];if(!cssMapping)return content;if(useSourceMap&&"function"==typeof btoa){var sourceMapping=function toComment(sourceMap){var base64=btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))),data="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(base64);return"/*# ".concat(data," */")}(cssMapping),sourceURLs=cssMapping.sources.map((function(source){return"/*# sourceURL=".concat(cssMapping.sourceRoot||"").concat(source," */")}));return[content].concat(sourceURLs).concat([sourceMapping]).join("\n")}return[content].join("\n")}(item,useSourceMap);return item[2]?"@media ".concat(item[2]," {").concat(content,"}"):content})).join("")},list.i=function(modules,mediaQuery,dedupe){"string"==typeof modules&&(modules=[[null,modules,""]]);var alreadyImportedModules={};if(dedupe)for(var i=0;i<this.length;i++){var id=this[i][0];null!=id&&(alreadyImportedModules[id]=!0)}for(var _i=0;_i<modules.length;_i++){var item=[].concat(modules[_i]);dedupe&&alreadyImportedModules[item[0]]||(mediaQuery&&(item[2]?item[2]="".concat(mediaQuery," and ").concat(item[2]):item[2]=mediaQuery),list.push(item))}},list}},12:function(module,exports,__webpack_require__){var fn,memo,stylesInDom={},isOldIE=(fn=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===memo&&(memo=fn.apply(this,arguments)),memo}),getTarget=function(target,parent){return parent?parent.querySelector(target):document.querySelector(target)},getElement=function(fn){var memo={};return function(target,parent){if("function"==typeof target)return target();if(void 0===memo[target]){var styleTarget=getTarget.call(this,target,parent);if(window.HTMLIFrameElement&&styleTarget instanceof window.HTMLIFrameElement)try{styleTarget=styleTarget.contentDocument.head}catch(e){styleTarget=null}memo[target]=styleTarget}return memo[target]}}(),singleton=null,singletonCounter=0,stylesInsertedAtTop=[],fixUrls=__webpack_require__(13);function addStylesToDom(styles,options){for(var i=0;i<styles.length;i++){var item=styles[i],domStyle=stylesInDom[item.id];if(domStyle){domStyle.refs++;for(var j=0;j<domStyle.parts.length;j++)domStyle.parts[j](item.parts[j]);for(;j<item.parts.length;j++)domStyle.parts.push(addStyle(item.parts[j],options))}else{var parts=[];for(j=0;j<item.parts.length;j++)parts.push(addStyle(item.parts[j],options));stylesInDom[item.id]={id:item.id,refs:1,parts:parts}}}}function listToStyles(list,options){for(var styles=[],newStyles={},i=0;i<list.length;i++){var item=list[i],id=options.base?item[0]+options.base:item[0],part={css:item[1],media:item[2],sourceMap:item[3]};newStyles[id]?newStyles[id].parts.push(part):styles.push(newStyles[id]={id:id,parts:[part]})}return styles}function insertStyleElement(options,style){var target=getElement(options.insertInto);if(!target)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var lastStyleElementInsertedAtTop=stylesInsertedAtTop[stylesInsertedAtTop.length-1];if("top"===options.insertAt)lastStyleElementInsertedAtTop?lastStyleElementInsertedAtTop.nextSibling?target.insertBefore(style,lastStyleElementInsertedAtTop.nextSibling):target.appendChild(style):target.insertBefore(style,target.firstChild),stylesInsertedAtTop.push(style);else if("bottom"===options.insertAt)target.appendChild(style);else{if("object"!=typeof options.insertAt||!options.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var nextSibling=getElement(options.insertAt.before,target);target.insertBefore(style,nextSibling)}}function removeStyleElement(style){if(null===style.parentNode)return!1;style.parentNode.removeChild(style);var idx=stylesInsertedAtTop.indexOf(style);idx>=0&&stylesInsertedAtTop.splice(idx,1)}function createStyleElement(options){var style=document.createElement("style");if(void 0===options.attrs.type&&(options.attrs.type="text/css"),void 0===options.attrs.nonce){var nonce=function getNonce(){0;return __webpack_require__.nc}();nonce&&(options.attrs.nonce=nonce)}return addAttrs(style,options.attrs),insertStyleElement(options,style),style}function addAttrs(el,attrs){Object.keys(attrs).forEach((function(key){el.setAttribute(key,attrs[key])}))}function addStyle(obj,options){var style,update,remove,result;if(options.transform&&obj.css){if(!(result="function"==typeof options.transform?options.transform(obj.css):options.transform.default(obj.css)))return function(){};obj.css=result}if(options.singleton){var styleIndex=singletonCounter++;style=singleton||(singleton=createStyleElement(options)),update=applyToSingletonTag.bind(null,style,styleIndex,!1),remove=applyToSingletonTag.bind(null,style,styleIndex,!0)}else obj.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(style=function createLinkElement(options){var link=document.createElement("link");return void 0===options.attrs.type&&(options.attrs.type="text/css"),options.attrs.rel="stylesheet",addAttrs(link,options.attrs),insertStyleElement(options,link),link}(options),update=updateLink.bind(null,style,options),remove=function(){removeStyleElement(style),style.href&&URL.revokeObjectURL(style.href)}):(style=createStyleElement(options),update=applyToTag.bind(null,style),remove=function(){removeStyleElement(style)});return update(obj),function updateStyle(newObj){if(newObj){if(newObj.css===obj.css&&newObj.media===obj.media&&newObj.sourceMap===obj.sourceMap)return;update(obj=newObj)}else remove()}}module.exports=function(list,options){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(options=options||{}).attrs="object"==typeof options.attrs?options.attrs:{},options.singleton||"boolean"==typeof options.singleton||(options.singleton=isOldIE()),options.insertInto||(options.insertInto="head"),options.insertAt||(options.insertAt="bottom");var styles=listToStyles(list,options);return addStylesToDom(styles,options),function update(newList){for(var mayRemove=[],i=0;i<styles.length;i++){var item=styles[i];(domStyle=stylesInDom[item.id]).refs--,mayRemove.push(domStyle)}newList&&addStylesToDom(listToStyles(newList,options),options);for(i=0;i<mayRemove.length;i++){var domStyle;if(0===(domStyle=mayRemove[i]).refs){for(var j=0;j<domStyle.parts.length;j++)domStyle.parts[j]();delete stylesInDom[domStyle.id]}}}};var textStore,replaceText=(textStore=[],function(index,replacement){return textStore[index]=replacement,textStore.filter(Boolean).join("\n")});function applyToSingletonTag(style,index,remove,obj){var css=remove?"":obj.css;if(style.styleSheet)style.styleSheet.cssText=replaceText(index,css);else{var cssNode=document.createTextNode(css),childNodes=style.childNodes;childNodes[index]&&style.removeChild(childNodes[index]),childNodes.length?style.insertBefore(cssNode,childNodes[index]):style.appendChild(cssNode)}}function applyToTag(style,obj){var css=obj.css,media=obj.media;if(media&&style.setAttribute("media",media),style.styleSheet)style.styleSheet.cssText=css;else{for(;style.firstChild;)style.removeChild(style.firstChild);style.appendChild(document.createTextNode(css))}}function updateLink(link,options,obj){var css=obj.css,sourceMap=obj.sourceMap,autoFixUrls=void 0===options.convertToAbsoluteUrls&&sourceMap;(options.convertToAbsoluteUrls||autoFixUrls)&&(css=fixUrls(css)),sourceMap&&(css+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))))+" */");var blob=new Blob([css],{type:"text/css"}),oldSrc=link.href;link.href=URL.createObjectURL(blob),oldSrc&&URL.revokeObjectURL(oldSrc)}},13:function(module,exports){module.exports=function(css){var location="undefined"!=typeof window&&window.location;if(!location)throw new Error("fixUrls requires window.location");if(!css||"string"!=typeof css)return css;var baseUrl=location.protocol+"//"+location.host,currentDir=baseUrl+location.pathname.replace(/\/[^\/]*$/,"/");return css.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(fullMatch,origUrl){var newUrl,unquotedOrigUrl=origUrl.trim().replace(/^"(.*)"$/,(function(o,$1){return $1})).replace(/^'(.*)'$/,(function(o,$1){return $1}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(unquotedOrigUrl)?fullMatch:(newUrl=0===unquotedOrigUrl.indexOf("//")?unquotedOrigUrl:0===unquotedOrigUrl.indexOf("/")?baseUrl+unquotedOrigUrl:currentDir+unquotedOrigUrl.replace(/^\.\//,""),"url("+JSON.stringify(newUrl)+")")}))}},17:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7),_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__),react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__),_Child__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(6);__webpack_require__(5);__webpack_exports__.default=function Hooky(){var _useState=Object(react__WEBPACK_IMPORTED_MODULE_1__.useState)(0),_useState2=_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_useState,2),count=_useState2[0],setCount=_useState2[1],_useState3=Object(react__WEBPACK_IMPORTED_MODULE_1__.useState)({name:"tom"}),_useState4=_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_useState3,2),user=_useState4[0],setInfor=_useState4[1];Object(react__WEBPACK_IMPORTED_MODULE_1__.useEffect)((function(){console.log("父页面被重新渲染!")}),[user]);var memo=Object(react__WEBPACK_IMPORTED_MODULE_1__.useMemo)((function(){return Math.random()*count}),[count]),getCount=Object(react__WEBPACK_IMPORTED_MODULE_1__.useCallback)((function(){return"count="+count}),[count]);return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div",{className:"App"},react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span",null,"当前值:",count," "),react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button",{onClick:function onClick(){return setCount(count+1)}},"点我+1"),react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button",{onClick:function clickme(){setCount(count-1)}},"点我-1")),react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span",null,"名字:",user.name," "),react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button",{onClick:function onClick(){return setInfor({name:"张三"})}},"点我改名")),react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span",null,"useMemo钩子:",memo," "),react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span",null,"useCallback钩子:",getCount()),react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Child__WEBPACK_IMPORTED_MODULE_2__.default,{message:count}))}},27:function(module,exports){module.exports=function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}},28:function(module,exports){module.exports=function _iterableToArrayLimit(arr,i){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(arr)){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}}},29:function(module,exports,__webpack_require__){var arrayLikeToArray=__webpack_require__(30);module.exports=function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?arrayLikeToArray(o,minLen):void 0}}},30:function(module,exports){module.exports=function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}},31:function(module,exports){module.exports=function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},4:function(module,exports){module.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA4NDEuOSA1OTUuMyI+CiAgICA8ZyBmaWxsPSIjNjFEQUZCIj4KICAgICAgICA8cGF0aCBkPSJNNjY2LjMgMjk2LjVjMC0zMi41LTQwLjctNjMuMy0xMDMuMS04Mi40IDE0LjQtNjMuNiA4LTExNC4yLTIwLjItMTMwLjQtNi41LTMuOC0xNC4xLTUuNi0yMi40LTUuNnYyMi4zYzQuNiAwIDguMy45IDExLjQgMi42IDEzLjYgNy44IDE5LjUgMzcuNSAxNC45IDc1LjctMS4xIDkuNC0yLjkgMTkuMy01LjEgMjkuNC0xOS42LTQuOC00MS04LjUtNjMuNS0xMC45LTEzLjUtMTguNS0yNy41LTM1LjMtNDEuNi01MCAzMi42LTMwLjMgNjMuMi00Ni45IDg0LTQ2LjlWNzhjLTI3LjUgMC02My41IDE5LjYtOTkuOSA1My42LTM2LjQtMzMuOC03Mi40LTUzLjItOTkuOS01My4ydjIyLjNjMjAuNyAwIDUxLjQgMTYuNSA4NCA0Ni42LTE0IDE0LjctMjggMzEuNC00MS4zIDQ5LjktMjIuNiAyLjQtNDQgNi4xLTYzLjYgMTEtMi4zLTEwLTQtMTkuNy01LjItMjktNC43LTM4LjIgMS4xLTY3LjkgMTQuNi03NS44IDMtMS44IDYuOS0yLjYgMTEuNS0yLjZWNzguNWMtOC40IDAtMTYgMS44LTIyLjYgNS42LTI4LjEgMT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45LTE0LjYgNzUuOC0zIDEuOC02LjkgMi42LTExLjUgMi42LTIwLjcgMC01MS40LTE2LjUtODQtNDYuNiAxNC0xNC43IDI4LTMxLjQgNDEuMy00OS45IDIyLjYtMi40IDQ0LTYuMSA2My42LTExIDIuMyAxMC4xIDQuMSAxOS44IDUuMiAyOS4xem0zOC41LTY2LjdjLTguNiAzLjctMTggNy0yNy43IDEwLjEtNS43LTE5LjYtMTMuMi00MC0yMi41LTYwLjkgOS4yLTIwLjggMTYuNi00MS4xIDIyLjItNjAuNiA5LjkgMy4xIDE5LjMgNi41IDI4LjEgMTAuMiAzNS40IDE1LjEgNTguMyAzNC45IDU4LjMgNTAuNi0uMSAxNS43LTIzIDM1LjYtNTguNCA1MC42ek0zMjAuOCA3OC40eiIvPgogICAgICAgIDxjaXJjbGUgY3g9IjQyMC45IiBjeT0iMjk2LjUiIHI9IjQ1LjciLz4KICAgICAgICA8cGF0aCBkPSJNNTIwLjUgNzguMXoiLz4KICAgIDwvZz4KPC9zdmc+Cg=="},5:function(module,exports,__webpack_require__){var content=__webpack_require__(10);"string"==typeof content&&(content=[[module.i,content,""]]);var options={hmr:!0,transform:void 0,insertInto:void 0};__webpack_require__(12)(content,options);content.locals&&(module.exports=content.locals)},6:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__),_assets_logo_svg__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4),_assets_logo_svg__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_assets_logo_svg__WEBPACK_IMPORTED_MODULE_1__);__webpack_require__(5);__webpack_exports__.default=function Child(props){var message=props.message;Object(react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((function(){console.log("子组件被渲染")}),[message]);var showMessage=Object(react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((function(){return message}),[message]);return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div",{style:{width:"200px",height:"80px",color:"white",position:"relative"}},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("img",{src:_assets_logo_svg__WEBPACK_IMPORTED_MODULE_1___default.a,alt:""}),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span",{id:"txt"},"这是子组件,你好",react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("em",null,showMessage)))}},65:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _Hooky__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(17);__webpack_require__.d(__webpack_exports__,"Hooky",(function(){return _Hooky__WEBPACK_IMPORTED_MODULE_0__.default}))},7:function(module,exports,__webpack_require__){var arrayWithHoles=__webpack_require__(27),iterableToArrayLimit=__webpack_require__(28),unsupportedIterableToArray=__webpack_require__(29),nonIterableRest=__webpack_require__(31);module.exports=function _slicedToArray(arr,i){return arrayWithHoles(arr)||iterableToArrayLimit(arr,i)||unsupportedIterableToArray(arr,i)||nonIterableRest()}}})}));
\ No newline at end of file
/*! !../../node_modules/css-loader/dist/cjs.js!./App.css */
/*! ../../node_modules/css-loader/dist/runtime/api.js */
/*! ../../node_modules/style-loader/lib/addStyles.js */
/*! ./Child */
/*! ./Hooky */
/*! ./arrayLikeToArray */
/*! ./arrayWithHoles */
/*! ./assets/App.css */
/*! ./assets/logo.svg */
/*! ./iterableToArrayLimit */
/*! ./nonIterableRest */
/*! ./unsupportedIterableToArray */
/*! ./urls */
/*! @babel/runtime/helpers/slicedToArray */
/*! ModuleConcatenation bailout: Module is an entry point */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/*! all exports used */
/*! exports provided: Hooky */
/*! exports provided: default */
/*! exports used: default */
/*! exports used: default, useCallback, useEffect, useMemo, useState */
/*! no static exports found */
/*! react */
/*!**********************!*\
!*** ./src/Child.js ***!
\**********************/
/*!**********************!*\
!*** ./src/Hooky.js ***!
\**********************/
/*!**********************!*\
!*** ./src/index.js ***!
\**********************/
/*!************************!*\
!*** external "react" ***!
\************************/
/*!****************************!*\
!*** ./src/assets/App.css ***!
\****************************/
/*!*****************************!*\
!*** ./src/assets/logo.svg ***!
\*****************************/
/*!***********************************************!*\
!*** ./node_modules/style-loader/lib/urls.js ***!
\***********************************************/
/*!****************************************************!*\
!*** ./node_modules/style-loader/lib/addStyles.js ***!
\****************************************************/
/*!*****************************************************!*\
!*** ./node_modules/css-loader/dist/runtime/api.js ***!
\*****************************************************/
/*!**************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
\**************************************************************/
/*!***************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
\***************************************************************/
/*!****************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
\****************************************************************/
/*!*****************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
\*****************************************************************/
/*!******************************************************************!*\
!*** ./node_modules/css-loader/dist/cjs.js!./src/assets/App.css ***!
\******************************************************************/
/*!*********************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
\*********************************************************************/
/*!***************************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
\***************************************************************************/
{"name": "audio_react",
"version": "1.0.3",
"description": "",
"main": "index.js",
"entry":"./src",
"output":"./lib",
"publicPath":"publicPath",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
}
/*! For license information please see serviceWorker.js.LICENSE.txt */
!function webpackUniversalModuleDefinition(root,factory){"object"==typeof exports&&"object"==typeof module?module.exports=factory():"function"==typeof define&&define.amd?define("audio_react",[],factory):"object"==typeof exports?exports.audio_react=factory():root.audio_react=factory()}(window,(function(){return function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};return modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.l=!0,module.exports}return __webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.d=function(exports,name,getter){__webpack_require__.o(exports,name)||Object.defineProperty(exports,name,{enumerable:!0,get:getter})},__webpack_require__.r=function(exports){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__webpack_require__.t=function(value,mode){if(1&mode&&(value=__webpack_require__(value)),8&mode)return value;if(4&mode&&"object"==typeof value&&value&&value.__esModule)return value;var ns=Object.create(null);if(__webpack_require__.r(ns),Object.defineProperty(ns,"default",{enumerable:!0,value:value}),2&mode&&"string"!=typeof value)for(var key in value)__webpack_require__.d(ns,key,function(key){return value[key]}.bind(null,key));return ns},__webpack_require__.n=function(module){var getter=module&&module.__esModule?function getDefault(){return module.default}:function getModuleExports(){return module};return __webpack_require__.d(getter,"a",getter),getter},__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)},__webpack_require__.p="publicPath",__webpack_require__(__webpack_require__.s=66)}({14:function(module,exports){var cachedSetTimeout,cachedClearTimeout,process=module.exports={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(fun){if(cachedSetTimeout===setTimeout)return setTimeout(fun,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(fun,0);try{return cachedSetTimeout(fun,0)}catch(e){try{return cachedSetTimeout.call(null,fun,0)}catch(e){return cachedSetTimeout.call(this,fun,0)}}}!function(){try{cachedSetTimeout="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){cachedSetTimeout=defaultSetTimout}try{cachedClearTimeout="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){cachedClearTimeout=defaultClearTimeout}}();var currentQueue,queue=[],draining=!1,queueIndex=-1;function cleanUpNextTick(){draining&&currentQueue&&(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var timeout=runTimeout(cleanUpNextTick);draining=!0;for(var len=queue.length;len;){for(currentQueue=queue,queue=[];++queueIndex<len;)currentQueue&&currentQueue[queueIndex].run();queueIndex=-1,len=queue.length}currentQueue=null,draining=!1,function runClearTimeout(marker){if(cachedClearTimeout===clearTimeout)return clearTimeout(marker);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(marker);try{return cachedClearTimeout(marker)}catch(e){try{return cachedClearTimeout.call(null,marker)}catch(e){return cachedClearTimeout.call(this,marker)}}}(timeout)}}function Item(fun,array){this.fun=fun,this.array=array}function noop(){}process.nextTick=function(fun){var args=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)args[i-1]=arguments[i];queue.push(new Item(fun,args)),1!==queue.length||draining||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},process.title="browser",process.browser=!0,process.env={},process.argv=[],process.version="",process.versions={},process.on=noop,process.addListener=noop,process.once=noop,process.off=noop,process.removeListener=noop,process.removeAllListeners=noop,process.emit=noop,process.prependListener=noop,process.prependOnceListener=noop,process.listeners=function(name){return[]},process.binding=function(name){throw new Error("process.binding is not supported")},process.cwd=function(){return"/"},process.chdir=function(dir){throw new Error("process.chdir is not supported")},process.umask=function(){return 0}},66:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(process){__webpack_require__.d(__webpack_exports__,"register",(function(){return register})),__webpack_require__.d(__webpack_exports__,"unregister",(function(){return unregister}));var isLocalhost=Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));function register(config){if("serviceWorker"in navigator){if(new URL(process.env.PUBLIC_URL,window.location.href).origin!==window.location.origin)return;window.addEventListener("load",(function(){var swUrl="".concat(process.env.PUBLIC_URL,"/service-worker.js");isLocalhost?(!function checkValidServiceWorker(swUrl,config){fetch(swUrl,{headers:{"Service-Worker":"script"}}).then((function(response){var contentType=response.headers.get("content-type");404===response.status||null!=contentType&&-1===contentType.indexOf("javascript")?navigator.serviceWorker.ready.then((function(registration){registration.unregister().then((function(){window.location.reload()}))})):registerValidSW(swUrl,config)})).catch((function(){console.log("No internet connection found. App is running in offline mode.")}))}(swUrl,config),navigator.serviceWorker.ready.then((function(){console.log("This web app is being served cache-first by a service worker. To learn more, visit https://bit.ly/CRA-PWA")}))):registerValidSW(swUrl,config)}))}}function registerValidSW(swUrl,config){navigator.serviceWorker.register(swUrl).then((function(registration){registration.onupdatefound=function(){var installingWorker=registration.installing;null!=installingWorker&&(installingWorker.onstatechange=function(){"installed"===installingWorker.state&&(navigator.serviceWorker.controller?(console.log("New content is available and will be used when all tabs for this page are closed. See https://bit.ly/CRA-PWA."),config&&config.onUpdate&&config.onUpdate(registration)):(console.log("Content is cached for offline use."),config&&config.onSuccess&&config.onSuccess(registration)))})}})).catch((function(error){console.error("Error during service worker registration:",error)}))}function unregister(){"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(registration){registration.unregister()})).catch((function(error){console.error(error.message)}))}}.call(this,__webpack_require__(14))}})}));
\ No newline at end of file
/*! ./../../../../../../usr/local/lib/node_modules/webpack/node_modules/process/browser.js */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/*! ModuleConcatenation bailout: Module uses injected variables (process) */
/*! all exports used */
/*! exports provided: register, unregister */
/*! no static exports found */
/*!******************************!*\
!*** ./src/serviceWorker.js ***!
\******************************/
/*!*************************************************!*\
!*** (webpack)/node_modules/process/browser.js ***!
\*************************************************/
This source diff could not be displayed because it is too large. You can view the blob instead.
/*! ../collections */
/*! ../helpers/typeof */
/*! ./../../../../../../../../usr/local/lib/node_modules/webpack/buildin/global.js */
/*! ./../../../../../../../usr/local/lib/node_modules/webpack/buildin/global.js */
/*! ./../../../../../../../usr/local/lib/node_modules/webpack/buildin/module.js */
/*! ./../../../../../../../usr/local/lib/node_modules/webpack/node_modules/process/browser.js */
/*! ./../../../../../../../usr/local/lib/node_modules/webpack/node_modules/timers-browserify/main.js */
/*! ./../../buildin/global.js */
/*! ./../process/browser.js */
/*! ./../webpack/buildin/module.js */
/*! ./_DataView */
/*! ./_Hash */
/*! ./_ListCache */
/*! ./_Map */
/*! ./_MapCache */
/*! ./_Promise */
/*! ./_Set */
/*! ./_SetCache */
/*! ./_Stack */
/*! ./_Symbol */
/*! ./_Uint8Array */
/*! ./_WeakMap */
/*! ./_arrayFilter */
/*! ./_arrayIncludes */
/*! ./_arrayIncludesWith */
/*! ./_arrayLikeKeys */
/*! ./_arrayPush */
/*! ./_arraySome */
/*! ./_assocIndexOf */
/*! ./_baseFindIndex */
/*! ./_baseGetAllKeys */
/*! ./_baseGetTag */
/*! ./_baseIndexOf */
/*! ./_baseIsArguments */
/*! ./_baseIsEqual */
/*! ./_baseIsEqualDeep */
/*! ./_baseIsNaN */
/*! ./_baseIsNative */
/*! ./_baseIsTypedArray */
/*! ./_baseKeys */
/*! ./_baseTimes */
/*! ./_baseUnary */
/*! ./_baseUniq */
/*! ./_cacheHas */
/*! ./_coreJsData */
/*! ./_createSet */
/*! ./_equalArrays */
/*! ./_equalByTag */
/*! ./_equalObjects */
/*! ./_freeGlobal */
/*! ./_getAllKeys */
/*! ./_getMapData */
/*! ./_getNative */
/*! ./_getRawTag */
/*! ./_getSymbols */
/*! ./_getTag */
/*! ./_getValue */
/*! ./_hashClear */
/*! ./_hashDelete */
/*! ./_hashGet */
/*! ./_hashHas */
/*! ./_hashSet */
/*! ./_isIndex */
/*! ./_isKeyable */
/*! ./_isMasked */
/*! ./_isPrototype */
/*! ./_listCacheClear */
/*! ./_listCacheDelete */
/*! ./_listCacheGet */
/*! ./_listCacheHas */
/*! ./_listCacheSet */
/*! ./_mapCacheClear */
/*! ./_mapCacheDelete */
/*! ./_mapCacheGet */
/*! ./_mapCacheHas */
/*! ./_mapCacheSet */
/*! ./_mapToArray */
/*! ./_nativeCreate */
/*! ./_nativeKeys */
/*! ./_nodeUtil */
/*! ./_objectToString */
/*! ./_overArg */
/*! ./_root */
/*! ./_setCacheAdd */
/*! ./_setCacheHas */
/*! ./_setToArray */
/*! ./_stackClear */
/*! ./_stackDelete */
/*! ./_stackGet */
/*! ./_stackHas */
/*! ./_stackSet */
/*! ./_strictIndexOf */
/*! ./_toSource */
/*! ./array-set */
/*! ./base64 */
/*! ./base64-vlq */
/*! ./binary-search */
/*! ./cjs/react-is.development.js */
/*! ./cleanupSemantic */
/*! ./collections */
/*! ./compiler */
/*! ./compress */
/*! ./constants */
/*! ./conversions */
/*! ./diffLines */
/*! ./diffStrings */
/*! ./dist/extend-expect */
/*! ./eq */
/*! ./escapeHTML */
/*! ./getAlignedDiffs */
/*! ./identity */
/*! ./index */
/*! ./isArguments */
/*! ./isArray */
/*! ./isArrayLike */
/*! ./isBuffer */
/*! ./isFunction */
/*! ./isLength */
/*! ./isObject */
/*! ./isObjectLike */
/*! ./isTypedArray */
/*! ./joinAlignedDiffs */
/*! ./keys */
/*! ./lib/markup */
/*! ./lib/parse */
/*! ./lib/source-map-consumer */
/*! ./lib/source-map-generator */
/*! ./lib/source-node */
/*! ./lib/stringify */
/*! ./mapping-list */
/*! ./noop */
/*! ./plugins/AsymmetricMatcher */
/*! ./plugins/ConvertAnsi */
/*! ./plugins/DOMCollection */
/*! ./plugins/DOMElement */
/*! ./plugins/Immutable */
/*! ./plugins/ReactElement */
/*! ./plugins/ReactTestComponent */
/*! ./printDiffs */
/*! ./quick-sort */
/*! ./route */
/*! ./source-map-generator */
/*! ./source-map-support */
/*! ./stubArray */
/*! ./stubFalse */
/*! ./templates.js */
/*! ./to-be-checked */
/*! ./to-be-disabled */
/*! ./to-be-empty */
/*! ./to-be-in-the-document */
/*! ./to-be-in-the-dom */
/*! ./to-be-invalid */
/*! ./to-be-required */
/*! ./to-be-visible */
/*! ./to-contain-element */
/*! ./to-contain-html */
/*! ./to-have-attribute */
/*! ./to-have-class */
/*! ./to-have-focus */
/*! ./to-have-form-values */
/*! ./to-have-style */
/*! ./to-have-text-content */
/*! ./to-have-value */
/*! ./util */
/*! ./utils */
/*! @babel/runtime/helpers/extends */
/*! @babel/runtime/helpers/interopRequireDefault */
/*! @babel/runtime/helpers/interopRequireWildcard */
/*! @testing-library/jest-dom/extend-expect */
/*! ModuleConcatenation bailout: Module is an entry point */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/*! all exports used */
/*! ansi-regex */
/*! ansi-styles */
/*! chalk */
/*! color-convert */
/*! color-name */
/*! css */
/*! css.escape */
/*! diff-sequences */
/*! escape-string-regexp */
/*! fs */
/*! indent-string */
/*! inherits */
/*! jest-diff */
/*! jest-get-type */
/*! jest-matcher-utils */
/*! lodash/isEqual */
/*! lodash/isEqualWith */
/*! lodash/uniq */
/*! min-indent */
/*! no exports provided */
/*! no static exports found */
/*! path */
/*! pretty-format */
/*! react-is */
/*! redent */
/*! resolve-url */
/*! setimmediate */
/*! source-map */
/*! source-map-resolve */
/*! source-map-url */
/*! strip-indent */
/*! supports-color */
/*! urix */
/*!***************************!*\
!*** ./src/setupTests.js ***!
\***************************/
/*!***********************************!*\
!*** (webpack)/buildin/global.js ***!
\***********************************/
/*!***********************************!*\
!*** (webpack)/buildin/module.js ***!
\***********************************/
/*!***********************************!*\
!*** ./node_modules/css/index.js ***!
\***********************************/
/*!***********************************!*\
!*** ./node_modules/lodash/eq.js ***!
\***********************************/
/*!************************************!*\
!*** ./node_modules/urix/index.js ***!
\************************************/
/*!*************************************!*\
!*** ./node_modules/chalk/index.js ***!
\*************************************/
/*!*************************************!*\
!*** ./node_modules/lodash/_Map.js ***!
\*************************************/
/*!*************************************!*\
!*** ./node_modules/lodash/_Set.js ***!
\*************************************/
/*!*************************************!*\
!*** ./node_modules/lodash/keys.js ***!
\*************************************/
/*!*************************************!*\
!*** ./node_modules/lodash/noop.js ***!
\*************************************/
/*!*************************************!*\
!*** ./node_modules/lodash/uniq.js ***!
\*************************************/
/*!**************************************!*\
!*** ./node_modules/lodash/_Hash.js ***!
\**************************************/
/*!**************************************!*\
!*** ./node_modules/lodash/_root.js ***!
\**************************************/
/*!**************************************!*\
!*** ./node_modules/redent/index.js ***!
\**************************************/
/*!***************************************!*\
!*** ./node_modules/lodash/_Stack.js ***!
\***************************************/
/*!****************************************!*\
!*** ./node_modules/lodash/_Symbol.js ***!
\****************************************/
/*!****************************************!*\
!*** ./node_modules/lodash/_getTag.js ***!
\****************************************/
/*!****************************************!*\
!*** ./node_modules/lodash/isArray.js ***!
\****************************************/
/*!****************************************!*\
!*** ./node_modules/lodash/isEqual.js ***!
\****************************************/
/*!****************************************!*\
!*** ./node_modules/react-is/index.js ***!
\****************************************/
/*!*****************************************!*\
!*** ./node_modules/chalk/templates.js ***!
\*****************************************/
/*!*****************************************!*\
!*** ./node_modules/lodash/_Promise.js ***!
\*****************************************/
/*!*****************************************!*\
!*** ./node_modules/lodash/_WeakMap.js ***!
\*****************************************/
/*!*****************************************!*\
!*** ./node_modules/lodash/_hashGet.js ***!
\*****************************************/
/*!*****************************************!*\
!*** ./node_modules/lodash/_hashHas.js ***!
\*****************************************/
/*!*****************************************!*\
!*** ./node_modules/lodash/_hashSet.js ***!
\*****************************************/
/*!*****************************************!*\
!*** ./node_modules/lodash/_isIndex.js ***!
\*****************************************/
/*!*****************************************!*\
!*** ./node_modules/lodash/_overArg.js ***!
\*****************************************/
/*!*****************************************!*\
!*** ./node_modules/lodash/isBuffer.js ***!
\*****************************************/
/*!*****************************************!*\
!*** ./node_modules/lodash/isLength.js ***!
\*****************************************/
/*!*****************************************!*\
!*** ./node_modules/lodash/isObject.js ***!
\*****************************************/
/*!******************************************!*\
!*** ./node_modules/ansi-regex/index.js ***!
\******************************************/
/*!******************************************!*\
!*** ./node_modules/color-name/index.js ***!
\******************************************/
/*!******************************************!*\
!*** ./node_modules/lodash/_DataView.js ***!
\******************************************/
/*!******************************************!*\
!*** ./node_modules/lodash/_MapCache.js ***!
\******************************************/
/*!******************************************!*\
!*** ./node_modules/lodash/_SetCache.js ***!
\******************************************/
/*!******************************************!*\
!*** ./node_modules/lodash/_baseKeys.js ***!
\******************************************/
/*!******************************************!*\
!*** ./node_modules/lodash/_baseUniq.js ***!
\******************************************/
/*!******************************************!*\
!*** ./node_modules/lodash/_cacheHas.js ***!
\******************************************/
/*!******************************************!*\
!*** ./node_modules/lodash/_getValue.js ***!
\******************************************/
/*!******************************************!*\
!*** ./node_modules/lodash/_isMasked.js ***!
\******************************************/
/*!******************************************!*\
!*** ./node_modules/lodash/_nodeUtil.js ***!
\******************************************/
/*!******************************************!*\
!*** ./node_modules/lodash/_stackGet.js ***!
\******************************************/
/*!******************************************!*\
!*** ./node_modules/lodash/_stackHas.js ***!
\******************************************/
/*!******************************************!*\
!*** ./node_modules/lodash/_stackSet.js ***!
\******************************************/
/*!******************************************!*\
!*** ./node_modules/lodash/_toSource.js ***!
\******************************************/
/*!******************************************!*\
!*** ./node_modules/lodash/stubArray.js ***!
\******************************************/
/*!******************************************!*\
!*** ./node_modules/lodash/stubFalse.js ***!
\******************************************/
/*!******************************************!*\
!*** ./node_modules/min-indent/index.js ***!
\******************************************/
/*!*******************************************!*\
!*** ./node_modules/ansi-styles/index.js ***!
\*******************************************/
/*!*******************************************!*\
!*** ./node_modules/lodash/_ListCache.js ***!
\*******************************************/
/*!*******************************************!*\
!*** ./node_modules/lodash/_arrayPush.js ***!
\*******************************************/
/*!*******************************************!*\
!*** ./node_modules/lodash/_arraySome.js ***!
\*******************************************/
/*!*******************************************!*\
!*** ./node_modules/lodash/_baseIsNaN.js ***!
\*******************************************/
/*!*******************************************!*\
!*** ./node_modules/lodash/_baseTimes.js ***!
\*******************************************/
/*!*******************************************!*\
!*** ./node_modules/lodash/_baseUnary.js ***!
\*******************************************/
/*!*******************************************!*\
!*** ./node_modules/lodash/_createSet.js ***!
\*******************************************/
/*!*******************************************!*\
!*** ./node_modules/lodash/_getNative.js ***!
\*******************************************/
/*!*******************************************!*\
!*** ./node_modules/lodash/_getRawTag.js ***!
\*******************************************/
/*!*******************************************!*\
!*** ./node_modules/lodash/_hashClear.js ***!
\*******************************************/
/*!*******************************************!*\
!*** ./node_modules/lodash/_isKeyable.js ***!
\*******************************************/
/*!*******************************************!*\
!*** ./node_modules/lodash/isFunction.js ***!
\*******************************************/
/*!********************************************!*\
!*** ./node_modules/lodash/_Uint8Array.js ***!
\********************************************/
/*!********************************************!*\
!*** ./node_modules/lodash/_baseGetTag.js ***!
\********************************************/
/*!********************************************!*\
!*** ./node_modules/lodash/_coreJsData.js ***!
\********************************************/
/*!********************************************!*\
!*** ./node_modules/lodash/_equalByTag.js ***!
\********************************************/
/*!********************************************!*\
!*** ./node_modules/lodash/_freeGlobal.js ***!
\********************************************/
/*!********************************************!*\
!*** ./node_modules/lodash/_getAllKeys.js ***!
\********************************************/
/*!********************************************!*\
!*** ./node_modules/lodash/_getMapData.js ***!
\********************************************/
/*!********************************************!*\
!*** ./node_modules/lodash/_getSymbols.js ***!
\********************************************/
/*!********************************************!*\
!*** ./node_modules/lodash/_hashDelete.js ***!
\********************************************/
/*!********************************************!*\
!*** ./node_modules/lodash/_mapToArray.js ***!
\********************************************/
/*!********************************************!*\
!*** ./node_modules/lodash/_nativeKeys.js ***!
\********************************************/
/*!********************************************!*\
!*** ./node_modules/lodash/_setToArray.js ***!
\********************************************/
/*!********************************************!*\
!*** ./node_modules/lodash/_stackClear.js ***!
\********************************************/
/*!********************************************!*\
!*** ./node_modules/lodash/isArguments.js ***!
\********************************************/
/*!********************************************!*\
!*** ./node_modules/lodash/isArrayLike.js ***!
\********************************************/
/*!********************************************!*\
!*** ./node_modules/lodash/isEqualWith.js ***!
\********************************************/
/*!********************************************!*\
!*** ./node_modules/strip-indent/index.js ***!
\********************************************/
/*!*********************************************!*\
!*** ./node_modules/color-convert/index.js ***!
\*********************************************/
/*!*********************************************!*\
!*** ./node_modules/color-convert/route.js ***!
\*********************************************/
/*!*********************************************!*\
!*** ./node_modules/css/lib/parse/index.js ***!
\*********************************************/
/*!*********************************************!*\
!*** ./node_modules/indent-string/index.js ***!
\*********************************************/
/*!*********************************************!*\
!*** ./node_modules/lodash/_arrayFilter.js ***!
\*********************************************/
/*!*********************************************!*\
!*** ./node_modules/lodash/_baseIndexOf.js ***!
\*********************************************/
/*!*********************************************!*\
!*** ./node_modules/lodash/_baseIsEqual.js ***!
\*********************************************/
/*!*********************************************!*\
!*** ./node_modules/lodash/_equalArrays.js ***!
\*********************************************/
/*!*********************************************!*\
!*** ./node_modules/lodash/_isPrototype.js ***!
\*********************************************/
/*!*********************************************!*\
!*** ./node_modules/lodash/_mapCacheGet.js ***!
\*********************************************/
/*!*********************************************!*\
!*** ./node_modules/lodash/_mapCacheHas.js ***!
\*********************************************/
/*!*********************************************!*\
!*** ./node_modules/lodash/_mapCacheSet.js ***!
\*********************************************/
/*!*********************************************!*\
!*** ./node_modules/lodash/_setCacheAdd.js ***!
\*********************************************/
/*!*********************************************!*\
!*** ./node_modules/lodash/_setCacheHas.js ***!
\*********************************************/
/*!*********************************************!*\
!*** ./node_modules/lodash/_stackDelete.js ***!
\*********************************************/
/*!*********************************************!*\
!*** ./node_modules/lodash/isObjectLike.js ***!
\*********************************************/
/*!*********************************************!*\
!*** ./node_modules/lodash/isTypedArray.js ***!
\*********************************************/
/*!*********************************************!*\
!*** ./node_modules/source-map/lib/util.js ***!
\*********************************************/
/*!*********************************************!*\
!*** ./packages/pretty-format/src/index.ts ***!
\*********************************************/
/*!**********************************************!*\
!*** ./node_modules/lodash/_assocIndexOf.js ***!
\**********************************************/
/*!**********************************************!*\
!*** ./node_modules/lodash/_baseIsNative.js ***!
\**********************************************/
/*!**********************************************!*\
!*** ./node_modules/lodash/_equalObjects.js ***!
\**********************************************/
/*!**********************************************!*\
!*** ./node_modules/lodash/_listCacheGet.js ***!
\**********************************************/
/*!**********************************************!*\
!*** ./node_modules/lodash/_listCacheHas.js ***!
\**********************************************/
/*!**********************************************!*\
!*** ./node_modules/lodash/_listCacheSet.js ***!
\**********************************************/
/*!**********************************************!*\
!*** ./node_modules/lodash/_nativeCreate.js ***!
\**********************************************/
/*!***********************************************!*\
!*** ./node_modules/css.escape/css.escape.js ***!
\***********************************************/
/*!***********************************************!*\
!*** ./node_modules/jest-diff/build/index.js ***!
\***********************************************/
/*!***********************************************!*\
!*** ./node_modules/lodash/_arrayIncludes.js ***!
\***********************************************/
/*!***********************************************!*\
!*** ./node_modules/lodash/_arrayLikeKeys.js ***!
\***********************************************/
/*!***********************************************!*\
!*** ./node_modules/lodash/_baseFindIndex.js ***!
\***********************************************/
/*!***********************************************!*\
!*** ./node_modules/lodash/_mapCacheClear.js ***!
\***********************************************/
/*!***********************************************!*\
!*** ./node_modules/lodash/_strictIndexOf.js ***!
\***********************************************/
/*!***********************************************!*\
!*** ./node_modules/source-map/lib/base64.js ***!
\***********************************************/
/*!***********************************************!*\
!*** ./node_modules/source-map/source-map.js ***!
\***********************************************/
/*!************************************************!*\
!*** ./node_modules/lodash/_baseGetAllKeys.js ***!
\************************************************/
/*!************************************************!*\
!*** ./node_modules/lodash/_listCacheClear.js ***!
\************************************************/
/*!************************************************!*\
!*** ./node_modules/lodash/_mapCacheDelete.js ***!
\************************************************/
/*!************************************************!*\
!*** ./node_modules/lodash/_objectToString.js ***!
\************************************************/
/*!************************************************!*\
!*** ./node_modules/supports-color/browser.js ***!
\************************************************/
/*!*************************************************!*\
!*** (webpack)/node_modules/process/browser.js ***!
\*************************************************/
/*!*************************************************!*\
!*** ./node_modules/css/lib/stringify/index.js ***!
\*************************************************/
/*!*************************************************!*\
!*** ./node_modules/lodash/_baseIsArguments.js ***!
\*************************************************/
/*!*************************************************!*\
!*** ./node_modules/lodash/_baseIsEqualDeep.js ***!
\*************************************************/
/*!*************************************************!*\
!*** ./node_modules/lodash/_listCacheDelete.js ***!
\*************************************************/
/*!*************************************************!*\
!*** ./node_modules/resolve-url/resolve-url.js ***!
\*************************************************/
/*!**************************************************!*\
!*** ./node_modules/lodash/_baseIsTypedArray.js ***!
\**************************************************/
/*!**************************************************!*\
!*** ./node_modules/source-map/lib/array-set.js ***!
\**************************************************/
/*!***************************************************!*\
!*** ./node_modules/color-convert/conversions.js ***!
\***************************************************/
/*!***************************************************!*\
!*** ./node_modules/inherits/inherits_browser.js ***!
\***************************************************/
/*!***************************************************!*\
!*** ./node_modules/jest-diff/build/constants.js ***!
\***************************************************/
/*!***************************************************!*\
!*** ./node_modules/jest-diff/build/diffLines.js ***!
\***************************************************/
/*!***************************************************!*\
!*** ./node_modules/jest-get-type/build/index.js ***!
\***************************************************/
/*!***************************************************!*\
!*** ./node_modules/lodash/_arrayIncludesWith.js ***!
\***************************************************/
/*!***************************************************!*\
!*** ./node_modules/source-map/lib/base64-vlq.js ***!
\***************************************************/
/*!***************************************************!*\
!*** ./node_modules/source-map/lib/quick-sort.js ***!
\***************************************************/
/*!***************************************************!*\
!*** ./packages/pretty-format/src/collections.ts ***!
\***************************************************/
/*!****************************************************!*\
!*** ./node_modules/css/lib/stringify/compiler.js ***!
\****************************************************/
/*!****************************************************!*\
!*** ./node_modules/css/lib/stringify/compress.js ***!
\****************************************************/
/*!****************************************************!*\
!*** ./node_modules/css/lib/stringify/identity.js ***!
\****************************************************/
/*!****************************************************!*\
!*** ./node_modules/diff-sequences/build/index.js ***!
\****************************************************/
/*!****************************************************!*\
!*** ./node_modules/escape-string-regexp/index.js ***!
\****************************************************/
/*!****************************************************!*\
!*** ./node_modules/jest-diff/build/printDiffs.js ***!
\****************************************************/
/*!****************************************************!*\
!*** ./node_modules/source-map/lib/source-node.js ***!
\****************************************************/
/*!*****************************************************!*\
!*** ./node_modules/jest-diff/build/diffStrings.js ***!
\*****************************************************/
/*!*****************************************************!*\
!*** ./node_modules/source-map/lib/mapping-list.js ***!
\*****************************************************/
/*!******************************************************!*\
!*** ./node_modules/source-map/lib/binary-search.js ***!
\******************************************************/
/*!*******************************************************!*\
!*** (webpack)/node_modules/path-browserify/index.js ***!
\*******************************************************/
/*!*******************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
\*******************************************************/
/*!*******************************************************!*\
!*** ./node_modules/pretty-format/build-es5/index.js ***!
\*******************************************************/
/*!*******************************************************!*\
!*** ./node_modules/source-map-url/source-map-url.js ***!
\*******************************************************/
/*!********************************************************!*\
!*** (webpack)/node_modules/timers-browserify/main.js ***!
\********************************************************/
/*!********************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/extends.js ***!
\********************************************************/
/*!********************************************************!*\
!*** ./node_modules/jest-matcher-utils/build/index.js ***!
\********************************************************/
/*!*********************************************************!*\
!*** ./node_modules/jest-diff/build/cleanupSemantic.js ***!
\*********************************************************/
/*!*********************************************************!*\
!*** ./node_modules/jest-diff/build/getAlignedDiffs.js ***!
\*********************************************************/
/*!*********************************************************!*\
!*** ./packages/pretty-format/src/plugins/Immutable.ts ***!
\*********************************************************/
/*!**********************************************************!*\
!*** ./node_modules/jest-diff/build/joinAlignedDiffs.js ***!
\**********************************************************/
/*!**********************************************************!*\
!*** ./packages/pretty-format/src/plugins/DOMElement.ts ***!
\**********************************************************/
/*!**********************************************************!*\
!*** ./packages/pretty-format/src/plugins/lib/markup.ts ***!
\**********************************************************/
/*!***********************************************************!*\
!*** (webpack)/node_modules/setimmediate/setImmediate.js ***!
\***********************************************************/
/*!***********************************************************!*\
!*** ./node_modules/react-is/cjs/react-is.development.js ***!
\***********************************************************/
/*!***********************************************************!*\
!*** ./packages/pretty-format/src/plugins/ConvertAnsi.ts ***!
\***********************************************************/
/*!************************************************************!*\
!*** ./node_modules/source-map/lib/source-map-consumer.js ***!
\************************************************************/
/*!************************************************************!*\
!*** ./packages/pretty-format/src/plugins/ReactElement.ts ***!
\************************************************************/
/*!*************************************************************!*\
!*** ./node_modules/source-map/lib/source-map-generator.js ***!
\*************************************************************/
/*!*************************************************************!*\
!*** ./packages/pretty-format/src/plugins/DOMCollection.ts ***!
\*************************************************************/
/*!**************************************************************!*\
!*** (webpack)/node_modules/node-libs-browser/mock/empty.js ***!
\**************************************************************/
/*!**************************************************************!*\
!*** ./node_modules/@testing-library/jest-dom/dist/index.js ***!
\**************************************************************/
/*!**************************************************************!*\
!*** ./node_modules/@testing-library/jest-dom/dist/utils.js ***!
\**************************************************************/
/*!**************************************************************!*\
!*** ./node_modules/css/lib/stringify/source-map-support.js ***!
\**************************************************************/
/*!**************************************************************!*\
!*** ./packages/pretty-format/src/plugins/lib/escapeHTML.ts ***!
\**************************************************************/
/*!***************************************************************!*\
!*** ./node_modules/source-map-resolve/source-map-resolve.js ***!
\***************************************************************/
/*!*****************************************************************!*\
!*** ./node_modules/@testing-library/jest-dom/extend-expect.js ***!
\*****************************************************************/
/*!*****************************************************************!*\
!*** ./packages/pretty-format/src/plugins/AsymmetricMatcher.ts ***!
\*****************************************************************/
/*!******************************************************************!*\
!*** ./packages/pretty-format/src/plugins/ReactTestComponent.ts ***!
\******************************************************************/
/*!********************************************************************!*\
!*** ./node_modules/@testing-library/jest-dom/dist/to-be-empty.js ***!
\********************************************************************/
/*!**********************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
\**********************************************************************/
/*!**********************************************************************!*\
!*** ./node_modules/@testing-library/jest-dom/dist/extend-expect.js ***!
\**********************************************************************/
/*!**********************************************************************!*\
!*** ./node_modules/@testing-library/jest-dom/dist/to-be-checked.js ***!
\**********************************************************************/
/*!**********************************************************************!*\
!*** ./node_modules/@testing-library/jest-dom/dist/to-be-invalid.js ***!
\**********************************************************************/
/*!**********************************************************************!*\
!*** ./node_modules/@testing-library/jest-dom/dist/to-be-visible.js ***!
\**********************************************************************/
/*!**********************************************************************!*\
!*** ./node_modules/@testing-library/jest-dom/dist/to-have-class.js ***!
\**********************************************************************/
/*!**********************************************************************!*\
!*** ./node_modules/@testing-library/jest-dom/dist/to-have-focus.js ***!
\**********************************************************************/
/*!**********************************************************************!*\
!*** ./node_modules/@testing-library/jest-dom/dist/to-have-style.js ***!
\**********************************************************************/
/*!**********************************************************************!*\
!*** ./node_modules/@testing-library/jest-dom/dist/to-have-value.js ***!
\**********************************************************************/
/*!***********************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/interopRequireWildcard.js ***!
\***********************************************************************/
/*!***********************************************************************!*\
!*** ./node_modules/@testing-library/jest-dom/dist/to-be-disabled.js ***!
\***********************************************************************/
/*!***********************************************************************!*\
!*** ./node_modules/@testing-library/jest-dom/dist/to-be-required.js ***!
\***********************************************************************/
/*!************************************************************************!*\
!*** ./node_modules/@testing-library/jest-dom/dist/to-contain-html.js ***!
\************************************************************************/
/*!*************************************************************************!*\
!*** ./node_modules/@testing-library/jest-dom/dist/to-be-in-the-dom.js ***!
\*************************************************************************/
/*!**************************************************************************!*\
!*** ./node_modules/@testing-library/jest-dom/dist/to-have-attribute.js ***!
\**************************************************************************/
/*!***************************************************************************!*\
!*** ./node_modules/@testing-library/jest-dom/dist/to-contain-element.js ***!
\***************************************************************************/
/*!****************************************************************************!*\
!*** ./node_modules/@testing-library/jest-dom/dist/to-have-form-values.js ***!
\****************************************************************************/
/*!*****************************************************************************!*\
!*** ./node_modules/@testing-library/jest-dom/dist/to-have-text-content.js ***!
\*****************************************************************************/
/*!******************************************************************************!*\
!*** ./node_modules/@testing-library/jest-dom/dist/to-be-in-the-document.js ***!
\******************************************************************************/
/** @license React v16.8.6
* react-is.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
......@@ -30,23 +30,23 @@
}
},
"@babel/core": {
"version": "7.9.0",
"resolved": "https://registry.npm.taobao.org/@babel/core/download/@babel/core-7.9.0.tgz?cache=0&sync_timestamp=1599146827519&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Fcore%2Fdownload%2F%40babel%2Fcore-7.9.0.tgz",
"integrity": "sha1-rJd7U4t34TL/cG87ik260JwDxW4=",
"version": "7.11.6",
"resolved": "https://registry.npm.taobao.org/@babel/core/download/@babel/core-7.11.6.tgz?cache=0&sync_timestamp=1599146827519&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Fcore%2Fdownload%2F%40babel%2Fcore-7.11.6.tgz",
"integrity": "sha1-OpRV3HOH/xusRXcGULwTugShVlE=",
"requires": {
"@babel/code-frame": "^7.8.3",
"@babel/generator": "^7.9.0",
"@babel/helper-module-transforms": "^7.9.0",
"@babel/helpers": "^7.9.0",
"@babel/parser": "^7.9.0",
"@babel/template": "^7.8.6",
"@babel/traverse": "^7.9.0",
"@babel/types": "^7.9.0",
"@babel/code-frame": "^7.10.4",
"@babel/generator": "^7.11.6",
"@babel/helper-module-transforms": "^7.11.0",
"@babel/helpers": "^7.10.4",
"@babel/parser": "^7.11.5",
"@babel/template": "^7.10.4",
"@babel/traverse": "^7.11.5",
"@babel/types": "^7.11.5",
"convert-source-map": "^1.7.0",
"debug": "^4.1.0",
"gensync": "^1.0.0-beta.1",
"json5": "^2.1.2",
"lodash": "^4.17.13",
"lodash": "^4.17.19",
"resolve": "^1.3.2",
"semver": "^5.4.1",
"source-map": "^0.5.0"
......@@ -2763,6 +2763,29 @@
"babel-plugin-transform-react-remove-prop-types": "0.4.24"
},
"dependencies": {
"@babel/core": {
"version": "7.9.0",
"resolved": "https://registry.npm.taobao.org/@babel/core/download/@babel/core-7.9.0.tgz?cache=0&sync_timestamp=1599146827519&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Fcore%2Fdownload%2F%40babel%2Fcore-7.9.0.tgz",
"integrity": "sha1-rJd7U4t34TL/cG87ik260JwDxW4=",
"requires": {
"@babel/code-frame": "^7.8.3",
"@babel/generator": "^7.9.0",
"@babel/helper-module-transforms": "^7.9.0",
"@babel/helpers": "^7.9.0",
"@babel/parser": "^7.9.0",
"@babel/template": "^7.8.6",
"@babel/traverse": "^7.9.0",
"@babel/types": "^7.9.0",
"convert-source-map": "^1.7.0",
"debug": "^4.1.0",
"gensync": "^1.0.0-beta.1",
"json5": "^2.1.2",
"lodash": "^4.17.13",
"resolve": "^1.3.2",
"semver": "^5.4.1",
"source-map": "^0.5.0"
}
},
"@babel/plugin-proposal-class-properties": {
"version": "7.8.3",
"resolved": "https://registry.npm.taobao.org/@babel/plugin-proposal-class-properties/download/@babel/plugin-proposal-class-properties-7.8.3.tgz?cache=0&sync_timestamp=1593522937004&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Fplugin-proposal-class-properties%2Fdownload%2F%40babel%2Fplugin-proposal-class-properties-7.8.3.tgz",
......@@ -2899,6 +2922,11 @@
"version": "5.7.1",
"resolved": "https://registry.npm.taobao.org/semver/download/semver-5.7.1.tgz?cache=0&sync_timestamp=1586886267748&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsemver%2Fdownload%2Fsemver-5.7.1.tgz",
"integrity": "sha1-qVT5Ma66UI0we78Gnv8MAclhFvc="
},
"source-map": {
"version": "0.5.7",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.5.7.tgz",
"integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w="
}
}
},
......@@ -10264,6 +10292,61 @@
"resolved": "https://registry.npm.taobao.org/progress/download/progress-2.0.3.tgz",
"integrity": "sha1-foz42PW48jnBvGi+tOt4Vn1XLvg="
},
"progress-bar-webpack-plugin": {
"version": "2.1.0",
"resolved": "http://192.168.0.63:4873/progress-bar-webpack-plugin/-/progress-bar-webpack-plugin-2.1.0.tgz",
"integrity": "sha1-9/jIxGH0C4eo/xaEQ/SUKJsH7mU=",
"requires": {
"chalk": "^3.0.0",
"progress": "^2.0.3"
},
"dependencies": {
"ansi-styles": {
"version": "4.2.1",
"resolved": "http://192.168.0.63:4873/ansi-styles/-/ansi-styles-4.2.1.tgz",
"integrity": "sha1-kK51xCTQCNJiTFvynq0xd+v881k=",
"requires": {
"@types/color-name": "^1.1.1",
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "3.0.0",
"resolved": "http://192.168.0.63:4873/chalk/-/chalk-3.0.0.tgz",
"integrity": "sha1-P3PCv1JlkfV0zEksUeJFY0n4ROQ=",
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "http://192.168.0.63:4873/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha1-ctOmjVmMm9s68q0ehPIdiWq9TeM=",
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "http://192.168.0.63:4873/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha1-wqCah6y95pVD3m9j+jmVyCbFNqI="
},
"has-flag": {
"version": "4.0.0",
"resolved": "http://192.168.0.63:4873/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha1-lEdx/ZyByBJlxNaUGGDaBrtZR5s="
},
"supports-color": {
"version": "7.2.0",
"resolved": "http://192.168.0.63:4873/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha1-G33NyzK4E4gBs+R4umpRyqiWSNo=",
"requires": {
"has-flag": "^4.0.0"
}
}
}
},
"promise": {
"version": "8.1.0",
"resolved": "https://registry.npm.taobao.org/promise/download/promise-8.1.0.tgz?cache=0&sync_timestamp=1583146725031&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpromise%2Fdownload%2Fpromise-8.1.0.tgz",
......@@ -10750,6 +10833,43 @@
"webpack-dev-server": "3.11.0",
"webpack-manifest-plugin": "2.2.0",
"workbox-webpack-plugin": "4.3.1"
},
"dependencies": {
"@babel/core": {
"version": "7.9.0",
"resolved": "https://registry.npm.taobao.org/@babel/core/download/@babel/core-7.9.0.tgz?cache=0&sync_timestamp=1599146827519&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Fcore%2Fdownload%2F%40babel%2Fcore-7.9.0.tgz",
"integrity": "sha1-rJd7U4t34TL/cG87ik260JwDxW4=",
"requires": {
"@babel/code-frame": "^7.8.3",
"@babel/generator": "^7.9.0",
"@babel/helper-module-transforms": "^7.9.0",
"@babel/helpers": "^7.9.0",
"@babel/parser": "^7.9.0",
"@babel/template": "^7.8.6",
"@babel/traverse": "^7.9.0",
"@babel/types": "^7.9.0",
"convert-source-map": "^1.7.0",
"debug": "^4.1.0",
"gensync": "^1.0.0-beta.1",
"json5": "^2.1.2",
"lodash": "^4.17.13",
"resolve": "^1.3.2",
"semver": "^5.4.1",
"source-map": "^0.5.0"
},
"dependencies": {
"semver": {
"version": "5.7.1",
"resolved": "https://registry.npm.taobao.org/semver/download/semver-5.7.1.tgz?cache=0&sync_timestamp=1586886267748&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsemver%2Fdownload%2Fsemver-5.7.1.tgz",
"integrity": "sha1-qVT5Ma66UI0we78Gnv8MAclhFvc="
}
}
},
"source-map": {
"version": "0.5.7",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.5.7.tgz",
"integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w="
}
}
},
"read-pkg": {
......
......@@ -6,7 +6,7 @@
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.3.2",
"@testing-library/user-event": "^7.1.2",
"babel-loader": "^8.1.0",
"progress-bar-webpack-plugin": "^2.1.0",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-scripts": "3.4.3"
......@@ -15,7 +15,8 @@
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
"eject": "react-scripts eject",
"frame": "rm -r lib && webpack-cli"
},
"eslintConfig": {
"extends": "react-app"
......@@ -31,5 +32,11 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@babel/core": "^7.11.6",
"@babel/preset-env": "^7.11.5",
"@babel/preset-react": "^7.10.4",
"babel-loader": "^8.1.0"
}
}
import React from 'react';
import { render } from '@testing-library/react';
import App from './App';
test('renders learn react link', () => {
const { getByText } = render(<App />);
const linkElement = getByText(/learn react/i);
expect(linkElement).toBeInTheDocument();
});
import React, { useMemo, useEffect } from 'react';
import logo from './logo.svg';
import './App.css'
import { green, white } from 'color-name';
import logo from './assets/logo.svg';
import './assets/App.css'
function Child(props){
......@@ -15,7 +14,7 @@ function Child(props){
},[message])
// 内嵌样式写法,及图片调用
return <div style={{width:"200px",height:"80px",color:"white",position:"relative"}}>
<img src={logo}/>
<img src={logo} alt=""/>
<span id="txt">这是子组件,你好<em>{showMessage}</em></span>
</div>
}
......
//react hook 基本用法
import React,{useState, useEffect, useMemo, useCallback} from 'react';//引用react
import Child from './Child';//子组件引用
import './App.css'; //样式的引用
import './assets/App.css'; //样式的引用
function App() { //在hook中模块是以函数的方式存在
function Hooky() { //在hook中模块是以函数的方式存在
const [count,setCount]=useState(0); //使用状态钩子
const [user,setInfor]=useState({name:'tom'});
......@@ -29,10 +29,10 @@ function App() { //在hook中模块是以函数的方式存在
}, [count]);
// 比较 useMemo和useCallback的差异
useEffect(()=>{
console.log(memo,'**')
console.log(getCount,'..')
},[getCount])
// useEffect(()=>{
// console.log(memo,'**')
// console.log(getCount,'..')
// },[getCount])
return ( //所有页面结构用return 方式返回给使用的模块
......@@ -60,4 +60,4 @@ function App() { //在hook中模块是以函数的方式存在
);
}
export default App;
export default Hooky;
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
// import React from 'react';
// import ReactDOM from 'react-dom';
// import './assets/index.css';
// import Hooky from './Hooky';
// import * as serviceWorker from './serviceWorker';
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);
serviceWorker.unregister();
// ReactDOM.render(
// <React.StrictMode>
// <Hooky />
// </React.StrictMode>,
// document.getElementById('root')
// );
// serviceWorker.unregister();
import Hooky from './Hooky'
export {Hooky}
const path = require('path');
const webpack = require('webpack');
const ProgressBarPlugin = require('progress-bar-webpack-plugin');
const keepStructure = require('./keepStructure');
const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const TerserPlugin = require('terser-webpack-plugin');
const config = {
mode: 'production',
...keepStructure,
resolve: {
extensions: ['.js','.jsx', '.ts', '.json']
},
node: {
fs: 'empty'
},
optimization: {
minimizer: [
new OptimizeCssAssetsPlugin({
assetNameRegExp: /\.optimize\.css$/g,
cssProcessor: require('cssnano'),
cssProcessorOptions: {
safe: true,
discardComments: {
removeAll: true
}
},
canPrint: true
}),
new TerserPlugin({
parallel: true,
terserOptions: {
beautify: false,
compress: true,
comments: false,
mangle: false,
toplevel: false,
keep_classnames: true,
keep_fnames: true,
}
})
],
},
//devtool: 'cheap-module-eval-source-map',
plugins: [
new OptimizeCssAssetsPlugin({
assetNameRegExp: /\.optimize\.css$/g,
cssProcessor: require('cssnano'),
cssProcessorOptions: {
safe: true,
discardComments: {
removeAll: true
}
},
canPrint: true
}),
new ProgressBarPlugin({
complete: '.',
width: 50,
clear: false
}),
new webpack.optimize.SplitChunksPlugin({
chunks: "all",
minSize: 20000,
minChunks: 2,
name: "commons"
})
],
module: {
rules: [
{
test: /\.(js|jsx)$/,
use: 'babel-loader',
exclude: /node_modules/,
},
{
test: /\.css$/,
use: ["style-loader", "css-loader"]
},
{
test: /\.scss$/,
use: [{
loader: "style-loader"
}, {
loader: "css-loader",
options: {
sourceMap: true
}
}, {
loader: "sass-loader",
options: {
sourceMap: true
}
}]
},
// {
// test: /\.vue$/,
// loader: "vue-loader",
// options: {
// loaders: {
// scss: "vue-style-loader!css-loader!sass-loader",
// sass: "vue-style-loader!css-loader!sass-loader?indentedSyntax"
// }
// }
// },
// {
// test: /\.jsx?$/,
// exclude: [path.join(__dirname, 'node_modules')],
// include: [
// path.resolve(__dirname, 'src')
// ],
// use: [
// {
// loader: 'babel-loader',
// options: {
// presets: [['build', { env: 'react' }]]
// }
// }
// ]
// },
{
test: /\.(jpg|jpeg|png|gif|bmp|ttf|svg)$/,
//loaders: "file-loader",
loaders: "url-loader",
options: {
limit: 10000,
name: 'assets/images/[name].[ext]?[hash]',
esModule: false
}
}
]
},
externals: {
react: 'react',
redux: 'redux',
vue: 'vue'
}
}
module.exports = config;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment