Skip to content

Commit

Permalink
chore: Add to Webpack to avoid compatibility issues. (issue #404)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maizify committed Jun 23, 2021
1 parent 9574f2d commit 52a2f2a
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 9,592 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ English | [简体中文](./CHANGELOG_CN.md)
#### 3.8.0 (2021-06-23)

- `Feat(Log)` Show resource (image/video/link/script) loading error log. (PR #411 by @zimv)
- `Chore` Add `target: ['web', 'es5']` to Webpack to avoid compatibility issues. (issue #404)
- `Fix(Network)` Fix error when `new URL('x', undefined)`. (PR #409 by @moonkop)


Expand All @@ -11,7 +12,7 @@ English | [简体中文](./CHANGELOG_CN.md)
- `Feat(Storage)` Show preview value to prevent large raw value blocking rendering. (issue #300)
- `Feat(Storage)` Add copy button and delete button.
- `Feat(Global)` Use system theme color by default when init option `theme` is empty.
- `Chore(Storage)` Convert Storage panel to `.ts` file.
- `Refactor(Storage)` Convert Storage panel to `.ts` file.
- `Fix(Network)` Use `forEach` instead of `.entries()` when traversing `headers`. (issue #404)
- `Fix(Network)` Fix error when `Content-Type` is empty.

Expand All @@ -26,7 +27,7 @@ English | [简体中文](./CHANGELOG_CN.md)
- `Feat(Log)` Print `unhandledrejection` log. (PR #389 by @zimv)
- `Feat(Network)` Support `navigator.sendBeacon()` in Network panel. (PR #383 by @cola119)
- `Feat(Network)` Display "Type" (Request Type) in "General", including `xhr|fetch|ping`.
- `Chore(Global)` Use TypeScript. Now Network panel is conveted to `.ts` file.
- `Refactor(Global)` Use TypeScript. Now Network panel is conveted to `.ts` file.
- `Fix(Network)` Recover original `window.fetch()` method when remove Network panel.
- `Fix(Storage)` Fix issue that the cookie of the non-first-level domain cannot be deleted. (issue #398)
- `Fix(Element)` Fix issue that elements are rendered as nested when `attributes` or `characterData` changed. (issue #399)
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

#### 3.8.0 (2021-06-23)

- `Feat(Log)` 增加显示资源(image/video/link/script)加载失败报错。 (PR #411 by @zimv)
- `Feat(Log)` 新增显示资源(image/video/link/script)加载失败报错。 (PR #411 by @zimv)
- `Chore` 新增 Webpack 配置 `target: ['web', 'es5']` 以避免兼容性问题。 (issue #404)
- `Fix(Network)` 修复 `new URL('x', undefined)` 第二参数为 `undefined` 时的报错。 (PR #409 by @moonkop)


Expand Down
19 changes: 19 additions & 0 deletions babel.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"presets": [
[
"@babel/preset-env",
{
"modules": false,
"targets": "defaults",
"loose": true
}
],
"@babel/preset-typescript"
],
"plugins": [
["@babel/plugin-proposal-class-properties", { "loose": true }],
"@babel/plugin-transform-block-scoping",
"@babel/plugin-proposal-export-namespace-from",
"@babel/plugin-proposal-object-rest-spread"
]
}
Loading

0 comments on commit 52a2f2a

Please sign in to comment.