experimenting with imports
This commit is contained in:
parent
7822ec7b29
commit
e4c6629f1f
3
main.js
3
main.js
@ -1,2 +1,5 @@
|
||||
import defaultExport from "painting/shape.js"
|
||||
|
||||
document.getElementById("main").innerText = "Yep";
|
||||
|
||||
let s1 = new Shape();
|
||||
|
7
painting/shape.js
Normal file
7
painting/shape.js
Normal file
@ -0,0 +1,7 @@
|
||||
class Shape {
|
||||
constructor() {
|
||||
window.document.getElementById("main").innerHTML = "Works";
|
||||
}
|
||||
}
|
||||
|
||||
export default Shape;
|
Loading…
Reference in New Issue
Block a user