-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: wasm package use 2.0.0-alpha.2
- Loading branch information
Showing
3 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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; | ||
|
@@ -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 = {} | ||
|
8999273
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: