首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >角13编译,不创建多边形填充-es5.js文件

角13编译,不创建多边形填充-es5.js文件
EN

Stack Overflow用户
提问于 2022-02-21 06:49:53
回答 1查看 2.1K关注 0票数 4

在尝试从角度9迁移到13之后,ng构建配置产品没有创建IE 11所需的文件。有什么方法支持IE11角13.?

我试过下面的东西

将tsconfig.json文件更新为es5

代码语言:javascript
复制
{
  "compileOnSave": false,
  "compilerOptions": {
    "outDir": "./dist/out-tsc",
    "sourceMap": true,
    "declaration": false,
    "downlevelIteration": true,
    "module": "es2020",
    "moduleResolution": "node",
    "experimentalDecorators": true,
    "importHelpers": true,
    "target": "es5",
    "typeRoots": [
      "node_modules/@types"
    ],
    "lib": [
      "es2018",
      "dom"
    ]
  },
  "angularCompilerOptions": {
    "fullTemplateTypeCheck": true,
    "strictInjectionParameters": true
  }
}

更新的polyfills.ts文件

代码语言:javascript
复制
 * BROWSER POLYFILLS
 */
import 'core-js';
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
// import 'classlist.js';  // Run `npm install --save classlist.js`.

我还在某个地方读到更新浏览器列表文件的内容,但是我无法在我的项目文件夹中找到浏览器列表文件。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-03-02 07:56:06

这都是关于转换到正确的模块def,并为ie11提取正确的填充(shims)。现在很痛:

https://www.bitovi.com/blog/ie-11-and-angular-overview.html

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71202216

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档