experimenting with imports

This commit is contained in:
Blue 2018-11-18 13:07:36 +03:00
parent 7822ec7b29
commit e4c6629f1f
2 changed files with 10 additions and 0 deletions

View File

@ -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
View File

@ -0,0 +1,7 @@
class Shape {
constructor() {
window.document.getElementById("main").innerHTML = "Works";
}
}
export default Shape;