{"_id":"@a1exsun/micro-web","_rev":"3-72470c9a3ec1ca88e9100971179267c3","name":"@a1exsun/micro-web","dist-tags":{"latest":"1.9.1"},"versions":{"1.0.0":{"name":"@a1exsun/micro-web","version":"1.0.0","keywords":["webcomponents","micro-frontend","microapp"],"author":{"name":"cangdu"},"license":"MIT","_id":"@a1exsun/micro-web@1.0.0","maintainers":[{"name":"a1exsun","email":"me@xsun.work"}],"homepage":"https://github.com/jd-opensource/micro-web#readme","bugs":{"url":"https://github.com/jd-opensource/micro-web/issues"},"dist":{"shasum":"9f73dcfd62d3e9a3e48f092bc94bd0ebd47c5e9c","tarball":"https://registry.npmjs.org/@a1exsun/micro-web/-/micro-web-1.0.0.tgz","fileCount":14,"integrity":"sha512-B/0RWrLr9ex7CXenvbiODZOklVcM/AhSzC0wPemGXuwprbSELbk54INs1VfACzR09BFD9ObsMB0tEttbJiiUDg==","signatures":[{"sig":"MEUCIQCQYCBsyq184EEFjX7fOeP/2JeOJduIxmgs2oFb89AmqAIgNmZNm1uxSueAcziCpozi3FozZmurgv8pwC9vprZDFVw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2429475},"main":"lib/index.min.js","husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"lint-staged"}},"types":"lib/index.d.ts","module":"lib/index.esm.js","gitHead":"d5f081a7653e1b96cecc0067be5283ea7ce32732","private":false,"scripts":{"docs":"docsify serve docs --port 2000","lint":"eslint --cache '**/*.{js,ts}'","test":"jest","build":"cross-env NODE_ENV='production' rollup -c && npm run createtype && npm run afterbuild","start":"yarn start:main-react16","lint:fix":"yarn lint --fix","bootstrap":"yarn && npm-run-all --serial install:*","main-vite":"cd dev/main-vite && yarn start","main-vue2":"cd dev/main-vue2 && yarn start","test:unit":"jest src/__tests__/unit","afterbuild":"node scripts/after_build.js","createtype":"node scripts/create_type.js","test:watch":"jest --watch","build:watch":"cross-env NODE_ENV='development' rollup -c -w","test:server":"node scripts/test_server.js --start","main-react16":"cd dev/main-react16 && yarn start","test:coverage":"jest --coverage","prepublishOnly":"yarn build","start:main-vite":"npm-run-all --parallel build:watch start-child:* main-vite","start:main-vue2":"npm-run-all --parallel build:watch start-child:* main-vue2","start-child:vue2":"cd dev/children/vue2 && yarn start","start-child:vue3":"cd dev/children/vue3 && yarn start","install:main-vite":"cd dev/main-vite && yarn","install:main-vue2":"cd dev/main-vue2 && yarn","start-child:vite2":"cd dev/children/vite2 && yarn start","start-child:vite4":"cd dev/children/vite4 && yarn start","install:child-vue2":"cd dev/children/vue2 && yarn","install:child-vue3":"cd dev/children/vue3 && yarn","start:main-react16":"npm-run-all --parallel build:watch start-child:* main-react16","test:unit:coverage":"npm run test:unit -- --coverage","install:child-vite2":"cd dev/children/vite2 && yarn","install:child-vite4":"cd dev/children/vite4 && yarn","start-child:react16":"cd dev/children/react16 && yarn start","start-child:react17":"cd dev/children/react17 && yarn start","install:main-react16":"cd dev/main-react16 && yarn","install:child-react16":"cd dev/children/react16 && yarn","install:child-react17":"cd dev/children/react17 && yarn","start-child:angular11":"cd dev/children/angular11 && yarn start","install:child-angular11":"cd dev/children/angular11 && yarn"},"_npmUser":{"name":"a1exsun","email":"me@xsun.work"},"repository":{"url":"git+https://github.com/jd-opensource/micro-web.git","type":"git"},"_npmVersion":"11.1.0","description":"A lightweight, efficient and powerful micro front-end framework","directories":{"doc":"docs"},"lint-staged":{"**/*.{js,ts}":["yarn lint"]},"_nodeVersion":"22.13.1","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e","devDependencies":{"jest":"~26.6.0","chalk":"~4.1.0","husky":"~4.3.6","eslint":"~7.17.0","rollup":"~2.35.1","ts-jest":"~26.5.6","fs-extra":"~10.0.0","coveralls":"~3.1.1","cross-env":"~7.0.3","gzip-size":"~6.0.0","babel-jest":"~26.6.0","dts-bundle":"~0.7.3","node-fetch":"~2.6.1","typescript":"~4.1.3","@babel/core":"~7.12.10","@types/jest":"~26.0.24","@types/node":"~14.14.19","docsify-cli":"~4.4.2","lint-staged":"~10.5.3","live-server":"~1.2.1","npm-run-all":"~4.1.5","pretty-bytes":"~5.5.0","@babel/runtime":"~7.12.5","@commitlint/cli":"~11.0.0","@babel/preset-env":"~7.12.11","eslint-plugin-jest":"~24.3.6","eslint-plugin-node":"~11.1.0","@rollup/plugin-babel":"~5.2.2","eslint-plugin-import":"~2.22.1","rollup-plugin-terser":"~7.0.2","@rollup/plugin-terser":"^0.4.4","eslint-plugin-promise":"~4.2.1","@rollup/plugin-replace":"~2.4.1","eslint-config-standard":"~16.0.2","eslint-plugin-standard":"~5.0.0","@rollup/plugin-typescript":"~8.1.0","@typescript-eslint/parser":"~4.11.1","@rollup/plugin-node-resolve":"~11.0.1","custom-elements-es5-adapter":"~1.0.0","@webcomponents/webcomponentsjs":"~2.5.0","@babel/plugin-transform-runtime":"~7.12.10","@commitlint/config-conventional":"~11.0.0","@typescript-eslint/eslint-plugin":"~4.11.1"},"_npmOperationalInternal":{"tmp":"tmp/micro-web_1.0.0_1766758907480_0.9330292156924371","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@a1exsun/micro-web","version":"1.1.0","keywords":["webcomponents","micro-frontend","microapp"],"author":{"name":"cangdu"},"license":"MIT","_id":"@a1exsun/micro-web@1.1.0","maintainers":[{"name":"a1exsun","email":"me@xsun.work"}],"homepage":"https://github.com/jd-opensource/micro-web#readme","bugs":{"url":"https://github.com/jd-opensource/micro-web/issues"},"dist":{"shasum":"dae467e21227900b7317a7166c8950b0af5d3610","tarball":"https://registry.npmjs.org/@a1exsun/micro-web/-/micro-web-1.1.0.tgz","fileCount":14,"integrity":"sha512-mF+AgAsEmwkp8UHRy9Dr4nL+cHvhzI8F+Auxab9huW9rKpWIjW+L7LcejXNSzXDfQqCPB79C0fYushqbmJP1cQ==","signatures":[{"sig":"MEYCIQDgapNwTGdPacWIleFFGzgKKgjGIuIyioDdLHtypm01/AIhAM+MInsaCaLYP++lzN8utCRojWmac/AeUTJspdhWdBW1","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2429475},"main":"lib/index.min.js","husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"lint-staged"}},"types":"lib/index.d.ts","module":"lib/index.esm.js","gitHead":"d5f081a7653e1b96cecc0067be5283ea7ce32732","private":false,"scripts":{"docs":"docsify serve docs --port 2000","lint":"eslint --cache '**/*.{js,ts}'","test":"jest","build":"cross-env NODE_ENV='production' rollup -c && npm run createtype && npm run afterbuild","start":"yarn start:main-react16","lint:fix":"yarn lint --fix","bootstrap":"yarn && npm-run-all --serial install:*","main-vite":"cd dev/main-vite && yarn start","main-vue2":"cd dev/main-vue2 && yarn start","test:unit":"jest src/__tests__/unit","afterbuild":"node scripts/after_build.js","createtype":"node scripts/create_type.js","test:watch":"jest --watch","build:watch":"cross-env NODE_ENV='development' rollup -c -w","test:server":"node scripts/test_server.js --start","main-react16":"cd dev/main-react16 && yarn start","test:coverage":"jest --coverage","prepublishOnly":"yarn build","start:main-vite":"npm-run-all --parallel build:watch start-child:* main-vite","start:main-vue2":"npm-run-all --parallel build:watch start-child:* main-vue2","start-child:vue2":"cd dev/children/vue2 && yarn start","start-child:vue3":"cd dev/children/vue3 && yarn start","install:main-vite":"cd dev/main-vite && yarn","install:main-vue2":"cd dev/main-vue2 && yarn","start-child:vite2":"cd dev/children/vite2 && yarn start","start-child:vite4":"cd dev/children/vite4 && yarn start","install:child-vue2":"cd dev/children/vue2 && yarn","install:child-vue3":"cd dev/children/vue3 && yarn","start:main-react16":"npm-run-all --parallel build:watch start-child:* main-react16","test:unit:coverage":"npm run test:unit -- --coverage","install:child-vite2":"cd dev/children/vite2 && yarn","install:child-vite4":"cd dev/children/vite4 && yarn","start-child:react16":"cd dev/children/react16 && yarn start","start-child:react17":"cd dev/children/react17 && yarn start","install:main-react16":"cd dev/main-react16 && yarn","install:child-react16":"cd dev/children/react16 && yarn","install:child-react17":"cd dev/children/react17 && yarn","start-child:angular11":"cd dev/children/angular11 && yarn start","install:child-angular11":"cd dev/children/angular11 && yarn"},"_npmUser":{"name":"a1exsun","email":"me@xsun.work"},"repository":{"url":"git+https://github.com/jd-opensource/micro-web.git","type":"git"},"_npmVersion":"11.1.0","description":"A lightweight, efficient and powerful micro front-end framework","directories":{"doc":"docs"},"lint-staged":{"**/*.{js,ts}":["yarn lint"]},"_nodeVersion":"22.13.1","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e","devDependencies":{"jest":"~26.6.0","chalk":"~4.1.0","husky":"~4.3.6","eslint":"~7.17.0","rollup":"~2.35.1","ts-jest":"~26.5.6","fs-extra":"~10.0.0","coveralls":"~3.1.1","cross-env":"~7.0.3","gzip-size":"~6.0.0","babel-jest":"~26.6.0","dts-bundle":"~0.7.3","node-fetch":"~2.6.1","typescript":"~4.1.3","@babel/core":"~7.12.10","@types/jest":"~26.0.24","@types/node":"~14.14.19","docsify-cli":"~4.4.2","lint-staged":"~10.5.3","live-server":"~1.2.1","npm-run-all":"~4.1.5","pretty-bytes":"~5.5.0","@babel/runtime":"~7.12.5","@commitlint/cli":"~11.0.0","@babel/preset-env":"~7.12.11","eslint-plugin-jest":"~24.3.6","eslint-plugin-node":"~11.1.0","@rollup/plugin-babel":"~5.2.2","eslint-plugin-import":"~2.22.1","rollup-plugin-terser":"~7.0.2","@rollup/plugin-terser":"^0.4.4","eslint-plugin-promise":"~4.2.1","@rollup/plugin-replace":"~2.4.1","eslint-config-standard":"~16.0.2","eslint-plugin-standard":"~5.0.0","@rollup/plugin-typescript":"~8.1.0","@typescript-eslint/parser":"~4.11.1","@rollup/plugin-node-resolve":"~11.0.1","custom-elements-es5-adapter":"~1.0.0","@webcomponents/webcomponentsjs":"~2.5.0","@babel/plugin-transform-runtime":"~7.12.10","@commitlint/config-conventional":"~11.0.0","@typescript-eslint/eslint-plugin":"~4.11.1"},"_npmOperationalInternal":{"tmp":"tmp/micro-web_1.1.0_1766758941778_0.13842551485542298","host":"s3://npm-registry-packages-npm-production"}},"1.9.1":{"name":"@a1exsun/micro-web","version":"1.9.1","description":"A lightweight, efficient and powerful micro front-end framework","private":false,"main":"lib/index.min.js","module":"lib/index.esm.js","types":"lib/index.d.ts","directories":{"doc":"docs"},"scripts":{"bootstrap":"yarn && npm-run-all --serial install:*","start":"yarn start:main-react16","start:main-react16":"npm-run-all --parallel build:watch start-child:* main-react16","start:main-vue2":"npm-run-all --parallel build:watch start-child:* main-vue2","start:main-vite":"npm-run-all --parallel build:watch start-child:* main-vite","build:watch":"cross-env NODE_ENV='development' rollup -c -w","build":"cross-env NODE_ENV='production' rollup -c && npm run createtype && npm run afterbuild","install:main-react16":"cd dev/main-react16 && yarn","install:main-vue2":"cd dev/main-vue2 && yarn","install:main-vite":"cd dev/main-vite && yarn","install:child-react16":"cd dev/children/react16 && yarn","install:child-react17":"cd dev/children/react17 && yarn","install:child-vue2":"cd dev/children/vue2 && yarn","install:child-vue3":"cd dev/children/vue3 && yarn","install:child-vite2":"cd dev/children/vite2 && yarn","install:child-vite4":"cd dev/children/vite4 && yarn","install:child-angular11":"cd dev/children/angular11 && yarn","main-react16":"cd dev/main-react16 && yarn start","main-vue2":"cd dev/main-vue2 && yarn start","main-vite":"cd dev/main-vite && yarn start","start-child:react16":"cd dev/children/react16 && yarn start","start-child:react17":"cd dev/children/react17 && yarn start","start-child:vue2":"cd dev/children/vue2 && yarn start","start-child:vue3":"cd dev/children/vue3 && yarn start","start-child:vite2":"cd dev/children/vite2 && yarn start","start-child:vite4":"cd dev/children/vite4 && yarn start","start-child:angular11":"cd dev/children/angular11 && yarn start","docs":"docsify serve docs --port 2000","lint":"eslint --cache .","lint:fix":"yarn lint --fix","createtype":"node scripts/create_type.js","afterbuild":"node scripts/after_build.js","test:server":"node scripts/test_server.js --start","test":"jest","test:watch":"jest --watch","test:coverage":"jest --coverage","test:unit":"jest src/__tests__/unit","test:unit:coverage":"npm run test:unit -- --coverage","prepublishOnly":"yarn build"},"repository":{"type":"git","url":"git+https://github.com/jd-opensource/micro-web.git"},"publishConfig":{"access":"public"},"keywords":["webcomponents","micro-frontend","microapp"],"author":{"name":"cangdu"},"license":"MIT","bugs":{"url":"https://github.com/jd-opensource/micro-web/issues"},"lint-staged":{"{src,scripts}/**/*.{js,ts}":["eslint --cache --fix"],"*.{js,ts}":["eslint --cache --fix"]},"dependencies":{},"devDependencies":{"@babel/core":"~7.12.10","@babel/plugin-transform-runtime":"~7.12.10","@babel/preset-env":"~7.12.11","@babel/runtime":"~7.12.5","@commitlint/cli":"~11.0.0","@commitlint/config-conventional":"~11.0.0","@rollup/plugin-babel":"~5.2.2","@rollup/plugin-node-resolve":"~11.0.1","@rollup/plugin-replace":"~2.4.1","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"~8.1.0","@types/jest":"~26.0.24","@types/node":"~14.14.19","@typescript-eslint/eslint-plugin":"~4.11.1","@typescript-eslint/parser":"~4.11.1","@webcomponents/webcomponentsjs":"~2.5.0","babel-jest":"~26.6.0","chalk":"~4.1.0","coveralls":"~3.1.1","cross-env":"~7.0.3","custom-elements-es5-adapter":"~1.0.0","docsify-cli":"~4.4.2","dts-bundle":"~0.7.3","eslint":"~7.17.0","eslint-config-standard":"~16.0.2","eslint-plugin-import":"~2.22.1","eslint-plugin-jest":"~24.3.6","eslint-plugin-node":"~11.1.0","eslint-plugin-promise":"~4.2.1","eslint-plugin-standard":"~5.0.0","fs-extra":"~10.0.0","gzip-size":"~6.0.0","husky":"~4.3.6","jest":"~26.6.0","lint-staged":"~10.5.3","live-server":"~1.2.1","node-fetch":"~2.6.1","npm-run-all":"~4.1.5","pretty-bytes":"~5.5.0","rollup":"~2.35.1","rollup-plugin-terser":"~7.0.2","ts-jest":"~26.5.6","typescript":"~4.1.3"},"packageManager":"yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e","_id":"@a1exsun/micro-web@1.9.1","gitHead":"8bc267b46f42852c1adfd2f5327d4cb227dc06b8","homepage":"https://github.com/jd-opensource/micro-web#readme","_nodeVersion":"22.13.1","_npmVersion":"11.1.0","dist":{"integrity":"sha512-2hYZV5sQhXRr44N5GBssIam3bkrxT/se6sLRxoRtyu6v79okFpw4JaVT4JM+DxiXcOeqyQd6ROUTn4eodTmxQw==","shasum":"e8105d697d4ed3974bc903f3b29568e59aec0b3d","tarball":"https://registry.npmjs.org/@a1exsun/micro-web/-/micro-web-1.9.1.tgz","fileCount":14,"unpackedSize":2428330,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDOArl+Poy84yn47lA+g3syQcCCJGY7LpJd2/v82nUa/AiAqfuTgeG+40gil6AbM2o2yNVy+/pYOOv64HUb9dcOarw=="}]},"_npmUser":{"name":"a1exsun","email":"me@xsun.work"},"maintainers":[{"name":"a1exsun","email":"me@xsun.work"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/micro-web_1.9.1_1766761227384_0.003317649531848099"},"_hasShrinkwrap":false}},"time":{"created":"2025-12-26T14:21:47.377Z","modified":"2025-12-26T15:00:27.818Z","1.0.0":"2025-12-26T14:21:47.660Z","1.1.0":"2025-12-26T14:22:21.949Z","1.9.1":"2025-12-26T15:00:27.607Z"},"bugs":{"url":"https://github.com/jd-opensource/micro-web/issues"},"author":{"name":"cangdu"},"license":"MIT","homepage":"https://github.com/jd-opensource/micro-web#readme","keywords":["webcomponents","micro-frontend","microapp"],"repository":{"type":"git","url":"git+https://github.com/jd-opensource/micro-web.git"},"description":"A lightweight, efficient and powerful micro front-end framework","maintainers":[{"name":"a1exsun","email":"me@xsun.work"}],"readme":"<p align=\"center\">\n  <a href=\"https://jd-opensource.github.io/micro-web/\">\n    <img src=\"https://zeroing.jd.com/micro-web/media/logo.png\" alt=\"logo\" width=\"200\"/>\n  </a>\n</p>\n\n<p align=\"center\">\n  <a href=\"https://www.npmjs.com/package/micro-web\">\n    <img src=\"https://img.shields.io/npm/v/micro-web.svg\" alt=\"version\"/>\n  </a>\n  <a href=\"https://www.npmjs.com/package/micro-web\">\n    <img src=\"https://img.shields.io/npm/dt/micro-web.svg\" alt=\"downloads\"/>\n  </a>\n  <a href=\"https://github.com/jd-opensource/micro-web/blob/master/LICENSE\">\n    <img src=\"https://img.shields.io/npm/l/micro-web.svg\" alt=\"license\"/>\n  </a>\n  <a href=\"https://github.com/jd-opensource/micro-web/blob/dev/Contact.md\">\n    <img src=\"https://img.shields.io/badge/chat-wechat-blue\" alt=\"WeChat\">\n  </a>\n  <a href=\"https://travis-ci.com/github/jd-opensource/micro-web\">\n    <img src=\"https://api.travis-ci.com/jd-opensource/micro-web.svg?branch=master\" alt=\"travis\"/>\n  </a>\n  <a href=\"https://coveralls.io/github/jd-opensource/micro-web?branch=master\">\n    <img src=\"https://coveralls.io/repos/github/jd-opensource/micro-web/badge.svg?branch=master\" alt=\"coveralls\"/>\n  </a>\n</p>\n\n[English](https://github.com/jd-opensource/micro-web)｜简体中文｜[官网文档](https://jd-opensource.github.io/micro-web/)｜[讨论组](https://github.com/jd-opensource/micro-web/discussions)｜[微信群](./Contact.md)\n\n# 📖简介\nmicro-web是京东零售推出的一款微前端框架，它基于类WebComponent进行渲染，从组件化的思维实现微前端，旨在降低上手难度、提升工作效率。它是目前接入微前端成本最低的框架，并且提供了JS沙箱、样式隔离、元素隔离、预加载、虚拟路由系统、插件系统、数据通信等一系列完善的功能。\n\nmicro-web与技术栈无关，对前端框架没有限制，任何框架都可以作为基座应用嵌入任何类型的子应用。\n\n# 如何使用\n## 主应用\n\n**1、安装依赖**\n```bash\nyarn add micro-web\n```\n\n**2、在入口文件引入**\n```js\n// main.js\nimport microWeb from 'micro-web'\n\nmicroWeb.start()\n```\n\n**3、在页面中嵌入微前端应用**\n```html\n<!-- 👇 name为应用名称，url为应用地址 -->\n<micro-web name='my-app' url='http://localhost:3000/'></micro-web>\n```\n\n## 子应用\n\n**在webpack-dev-server的headers中设置跨域支持。**\n```js\ndevServer: {\n  headers: {\n    'Access-Control-Allow-Origin': '*',\n  },\n},\n```\n\n以上即完成微前端的嵌入，效果如下：\n\n<img src=\"https://img12.360buyimg.com/imagetools/jfs/t1/196940/34/1541/38365/610a14fcE46c21374/c321b9f8fa50a8fc.png\" alt=\"result\" width='900'/>\n\n更多详细配置可以查看[官网文档](https://jd-opensource.github.io/micro-web/docs.html#/zh-cn/start)\n\n# 🤝 参与共建\n如果您对这个项目感兴趣，欢迎参与贡献，也欢迎 \"Star\" 支持一下 ^_^\n\n### 本地运行\n1、克隆项目\n```\ngit clone https://github.com/jd-opensource/micro-web.git\n```\n\n2、安装依赖\n```\nyarn bootstrap\n```\n\n3、运行项目\n```\nyarn start # 访问 http://localhost:3000\n```\n\n更多命令请查看[DEVELP](https://github.com/jd-opensource/micro-web/blob/master/DEVELOP.zh-cn.md)\n\n# FAQ\n[问题汇总](https://jd-opensource.github.io/micro-web/docs.html#/zh-cn/questions)\n<details>\n\n  <summary>micro-web的优势在哪里？</summary>\n  上手简单、侵入性低，只需改动少量的代码即可接入微前端，同时提供丰富的功能。\n\n  具体细节请参考文章：[micro-web介绍](https://github.com/jd-opensource/micro-web/issues/8)\n\n</details>\n<details>\n  <summary>兼容性如何？</summary>\n  micro-web依赖于CustomElements和Proxy两个较新的API。\n\n  对于不支持CustomElements的浏览器，可以通过引入polyfill进行兼容，详情可参考：[webcomponents/polyfills](https://github.com/webcomponents/polyfills/tree/master/packages/custom-elements)。\n\n  但是Proxy暂时没有做兼容，所以对于不支持Proxy的浏览器无法运行micro-web。\n\n  浏览器兼容性可以查看：[Can I Use](https://caniuse.com/?search=Proxy)\n\n  总体如下：\n  - PC端：除了IE浏览器，其它浏览器基本兼容。\n  - 移动端：ios10+、android5+\n</details>\n\n<details>\n  <summary>子应用一定要支持跨域吗？</summary>\n  是的！\n\n  如果是开发环境，可以在webpack-dev-server中设置headers支持跨域。\n  ```js\n  devServer: {\n    headers: {\n      'Access-Control-Allow-Origin': '*',\n    },\n  }\n  ```\n\n  如果是线上环境，可以通过[配置nginx](https://segmentfault.com/a/1190000012550346)支持跨域。\n</details>\n\n<details>\n  <summary>支持vite吗?</summary>\n  \n  支持，详情请查看[适配vite](https://jd-opensource.github.io/micro-web/docs.html#/zh-cn/framework/vite)\n</details>\n\n<details>\n  <summary>支持ssr吗?</summary>\n  \n  支持，详情请查看[nextjs](https://jd-opensource.github.io/micro-web/docs.html#/zh-cn/framework/nextjs)、[nuxtjs](https://jd-opensource.github.io/micro-web/docs.html#/zh-cn/framework/nuxtjs)\n</details>\n\n\n# 贡献者们\n<a href=\"https://github.com/jd-opensource/micro-web/graphs/contributors\">\n  <img src=\"https://contrib.rocks/image?repo=jd-opensource/micro-web\" />\n</a>\n\n\n# License\n[MIT License](https://github.com/jd-opensource/micro-web/blob/master/LICENSE)\n","readmeFilename":"README.zh-cn.md"}