Make import paths ES6-compatible
This commit is contained in:
committed by
vitorsemeano
parent
1a635e2f81
commit
bfb8c7c1f6
@@ -1,4 +1,4 @@
|
||||
import 'css!./toast';
|
||||
import './toast';
|
||||
|
||||
function remove(elem) {
|
||||
setTimeout(function () {
|
||||
@@ -21,7 +21,7 @@ export default function (options) {
|
||||
}
|
||||
|
||||
const elem = document.createElement('div');
|
||||
elem.classList.add('toast');
|
||||
elem.classList.add('../toast/toast');
|
||||
elem.innerHTML = options.text;
|
||||
|
||||
document.body.appendChild(elem);
|
||||
|
||||
Reference in New Issue
Block a user