chore: webpack编译优化

This commit is contained in:
eric
2022-11-13 11:14:11 +08:00
parent 750a6344a7
commit f3e62862fc
40 changed files with 165 additions and 50953 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2472
dist/pages/home/index.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,59 +1,2 @@
"use strict";
(wx["webpackJsonp"] = wx["webpackJsonp"] || []).push([["pages/my/index"],{
/***/ "./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./src/pages/my/index.tsx":
/*!*****************************************************************************************************!*\
!*** ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./src/pages/my/index.tsx ***!
\*****************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var _tarojs_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @tarojs/components */ "./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");
/* harmony import */ var _components_TabbarCom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../components/TabbarCom */ "./src/pages/components/TabbarCom/index.tsx");
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "webpack/container/remote/react/jsx-runtime");
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__);
var my = function my(props) {
// const [active, setActive] = react.useState(props?.active ?? 0);
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_2__.View, {
children: ["my", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components_TabbarCom__WEBPACK_IMPORTED_MODULE_0__["default"], {
active: 2
}), ";"]
});
};
/* harmony default export */ __webpack_exports__["default"] = (my);
/***/ }),
/***/ "./src/pages/my/index.tsx":
/*!********************************!*\
!*** ./src/pages/my/index.tsx ***!
\********************************/
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
/* harmony import */ var _tarojs_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tarojs/runtime */ "webpack/container/remote/@tarojs/runtime");
/* harmony import */ var _tarojs_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_tarojs_runtime__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _node_modules_babel_loader_lib_index_js_ruleSet_1_rules_5_use_0_index_tsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./index.tsx */ "./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./src/pages/my/index.tsx");
var config = {};
var inst = Page((0,_tarojs_runtime__WEBPACK_IMPORTED_MODULE_0__.createPageConfig)(_node_modules_babel_loader_lib_index_js_ruleSet_1_rules_5_use_0_index_tsx__WEBPACK_IMPORTED_MODULE_1__["default"], 'pages/my/index', {root:{cn:[]}}, config || {}))
/***/ })
},
/******/ function(__webpack_require__) { // webpackRuntimeModules
/******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
/******/ __webpack_require__.O(0, ["taro","vendors","common"], function() { return __webpack_exec__("./src/pages/my/index.tsx"); });
/******/ var __webpack_exports__ = __webpack_require__.O();
/******/ }
]);
//# sourceMappingURL=index.js.map
/*! For license information please see index.js.LICENSE.txt */
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([["pages/my/index"],{"./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./src/pages/my/index.tsx":function(e,s,n){var t=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),a=n("./src/pages/components/TabbarCom/index.tsx"),o=n("webpack/container/remote/react/jsx-runtime");s.default=function my(e){return(0,o.jsxs)(t.View,{children:["my",(0,o.jsx)(a.default,{active:2}),";"]})}},"./src/pages/my/index.tsx":function(e,s,n){var t=n("webpack/container/remote/@tarojs/runtime"),a=n("./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./src/pages/my/index.tsx");Page((0,t.createPageConfig)(a.default,"pages/my/index",{root:{cn:[]}},{}||{}))}},function(e){e.O(0,["taro","vendors","common"],(function(){return s="./src/pages/my/index.tsx",e(e.s=s);var s}));e.O()}]);

View File

@@ -1 +0,0 @@
{"version":3,"file":"pages/my/index.js","mappings":";;;;;;;;;;;;;AACA;AAEA;AAAA;AAAA;AAEA;AACA;;AAEA;AACA;AAEA;AAAA;AAAA;AAGA;AAEA;;;;;;;;;;;;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":["webpack://myApp/._src_pages_my_index.tsx","webpack://myApp/./src/pages/my/index.tsx?f47f"],"sourcesContent":["import { Tabbar, TabbarItem } from \"@antmjs/vantui\";\nimport { View } from \"@tarojs/components\";\nimport react from \"react\";\nimport TabbarCom from \"../components/TabbarCom\";\n\nconst my = (props: any) => {\n// const [active, setActive] = react.useState(props?.active ?? 0);\n\n return (\n <View>\n my\n <TabbarCom active={2} />;\n </View>\n );\n};\n\nexport default my;\n","import { createPageConfig } from '@tarojs/runtime'\nimport component from \"../../../node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./index.tsx\"\nvar config = {};\n\n\nvar inst = Page(createPageConfig(component, 'pages/my/index', {root:{cn:[]}}, config || {}))\n\n\n"],"names":[],"sourceRoot":""}