Hi I'm new to webpack and ES6, Trying to access imported class in html. i have a index.js imported classes in it.
import one from './src/one.js';
import two from './src/two.js';
import three from './src/three.js';
export {
one,
two,
three
}
in index.html i'm trying to access the class.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script src="bundle.js"></script>
</head>
<body>
<script>
let oneObj = new one();
</script>
</body>
</html>
Getting error "one is not defined". Please help me how can i access the classes in html.