Skip to content

Commit

Permalink
chore: wasm package use 2.0.0-alpha.2
Browse files Browse the repository at this point in the history
  • Loading branch information
yisibl committed Feb 21, 2022
1 parent a3aa32f commit 8999273
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ This changelog also contains important changes in dependencies.

- feat: playground uses [unpkg.com's](https://unpkg.com/@resvg/resvg-wasm) online resources
```html
<script src="https://unpkg.com/@resvg/[email protected].0/index.min.js"></script>
<script src="https://unpkg.com/@resvg/[email protected].2/index.min.js"></script>
```
- feat: preload wasm in the playground
```html
Expand Down
2 changes: 1 addition & 1 deletion playground/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>resvg-js playground</title>
<link rel="preload" as="fetch" type="application/wasm" href="https://unpkg.com/@resvg/resvg-wasm/index_bg.wasm">
<script src="https://unpkg.com/@resvg/[email protected].0/index.min.js"></script>
<script src="https://unpkg.com/@resvg/[email protected].2/index.min.js"></script>
<style>
html {
box-sizing: border-box;
Expand Down
6 changes: 3 additions & 3 deletions wasm/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>resvg-js playground</title>
<link rel="preload" as="fetch" type="application/wasm" href="https://unpkg.com/@resvg/resvg-wasm/index_bg.wasm">
<script src="https://unpkg.com/@resvg/[email protected].0/index.min.js"></script>
<link rel="preload" as="fetch" type="application/wasm" href="https://unpkg.com/@resvg/resvg-wasm@2.0.0-alpha.2/index_bg.wasm">
<script src="https://unpkg.com/@resvg/[email protected].2/index.min.js"></script>
<style>
html {
box-sizing: border-box;
Expand Down Expand Up @@ -133,7 +133,7 @@

<script>
(async function () {
await resvg.initWasm(fetch('https://unpkg.com/@resvg/resvg-wasm/index_bg.wasm'))
await resvg.initWasm(fetch('https://unpkg.com/@resvg/resvg-wasm@2.0.0-alpha.2/index_bg.wasm'))
const output = document.getElementById('output')
const svgElement = document.querySelector('#svg')
let resvgOpts = {}
Expand Down

1 comment on commit 8999273

@vercel
Copy link

@vercel vercel bot commented on 8999273 Feb 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.