Skip to content

Commit cfe1599

Browse files
committed
Update demos to use import assertions
1 parent c9130af commit cfe1599

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

demo1/cssModuleElement.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import sheet from "./styles.css";
1+
import sheet from "./styles.css" assert { type: "css" };
22

33
class CSSModuleTestElement extends HTMLElement {
44
constructor() {

demo2/cssModuleCatElement.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import sheet from "./big_styles.css";
1+
import sheet from "./big_styles.css" assert { type: "css" };
22

33
class CSSModuleCatElement extends HTMLElement {
44
constructor() {

demo3/cssModuleElement.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import sheet from "./styles.css";
1+
import sheet from "./styles.css" assert { type: "css" };
22

33
class CSSModuleTestElement extends HTMLElement {
44
constructor() {

demo4/module.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
}
1616
</script>
1717
<script type="module">
18-
import jsonData from "./citylots_reduced.json";
18+
import jsonData from "./citylots_reduced.json" assert { type: "json" };
1919
logPerf(`Got JSON with array of length ${jsonData.features.length} items`);
2020
</script>
2121
</head>

0 commit comments

Comments
 (0)