Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jackhowa/esmodule-no-module-doing-something
do crazy something with nomodule/module
https://github.com/jackhowa/esmodule-no-module-doing-something
esmodule nomodule regenerator-runtime
Last synced: about 1 month ago
JSON representation
do crazy something with nomodule/module
- Host: GitHub
- URL: https://github.com/jackhowa/esmodule-no-module-doing-something
- Owner: JackHowa
- License: mit
- Created: 2021-01-07T23:23:10.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-05T18:57:16.000Z (almost 2 years ago)
- Last Synced: 2023-08-18T23:00:43.617Z (over 1 year ago)
- Topics: esmodule, nomodule, regenerator-runtime
- Language: JavaScript
- Homepage: https://nomodule-module-faceoff.netlify.app/
- Size: 503 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# esmodule-no-module-doing-something
do crazy something with nomodule/module
- [x] transpile two outputs
- [x] use nomodule/module pattern found in https://jakearchibald.com/2017/es-modules-in-browsers/#nomodule-for-backwards-compatibility
- [x] test somehow with ie 11 -> used Parallels free trial
- [x] transpile output successfully (getting require error with regenerator runtime not found)
- [x] document webpack solution with regenerator runtime
- [x] pass estimator.dev -> nearly 6% leftdebugging: https://github.com/babel/babel/discussions/12598
## Reference
- https://stackoverflow.com/questions/57492546/what-is-the-difference-between-js-and-mjs-files
- https://jakearchibald.com/2017/es-modules-in-browsers/#nomodule-for-backwards-compatibility
- https://html.spec.whatwg.org/multipage/scripting.html#script-nomodule-example
- https://stackoverflow.com/questions/60895930/javascript-type-module-doesnt-execute### Babel
- default broswerlistrc https://babeljs.io/docs/en/babel-preset-env#no-targets
- module https://babeljs.io/docs/en/babel-preset-env#targetsesmodules
- transform regenerator via error `SCRIPT5009: 'regeneratorRuntime' is undefined` https://stackoverflow.com/a/36821986/7491536
- https://babeljs.io/docs/en/babel-plugin-transform-runtime
- https://philipwalton.com/articles/deploying-es2015-code-in-production-today/
- https://github.com/babel/preset-modules#babelpreset-modules
- https://css-tricks.com/differential-serving/
- jason miller preset modules https://babeljs.io/blog/2020/03/16/7.9.0
- https://github.com/babel/babel-loader/issues/754