Skip to content

bgorkem/browser-es6-modules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Browser ES6 Module Support

Install and Run

npm install

npm run server

Browser modules

You can use <script type="module" src="main.mjs"></script>

in your browser html code to import main module

And then from main module you can import

import { add, subtract} from './modules/calculator.mjs';

Modern browser support this feature

https://caniuse.com/#feat=es6-module

About

Demo on browser ES6 module support

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published