https://github.com/shellyln/menneu-api-usage-on-esm
Usage example of Ménneu API on ES modules
https://github.com/shellyln/menneu-api-usage-on-esm
Last synced: 4 months ago
JSON representation
Usage example of Ménneu API on ES modules
- Host: GitHub
- URL: https://github.com/shellyln/menneu-api-usage-on-esm
- Owner: shellyln
- Created: 2019-03-31T10:25:45.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T21:42:15.000Z (over 3 years ago)
- Last Synced: 2025-07-13T16:49:01.764Z (11 months ago)
- Language: JavaScript
- Size: 1.46 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Usage example of Ménneu API on ES modules.
[](https://github.com/shellyln/menneu/)
## Source files
* index.mjs
* The entry point of this example.
* extension.js
* Extend the node `require()` to load stylesheets as text.
## NPM Scripts
* start
* Run without the bundlers; pure Node ES modules environment. (Node < `12.0.0`)
* start12
* Run without the bundlers; pure Node ES modules environment. (Node = `12.0.0`)
* Node's `.mjs` and `.js` lookup order behavior has changed, so it doesn't work on Node = `13.0.0`.
Prease use webpack (`npm run bundler:wp` and `npm run start:wp`).
---
* bundler:wp
* Transpile and bundle with babel + webpack.
* start:wp
* Run bundled file packed by webpack.
---
* bundler:pa
* Transpile and bundle with parcel.
* build error has occured. (index.mjs)
* `Support for the experimental syntax 'importMeta' isn't currently enabled`
* start:pa
* Run bundled file packed by parcel.
* runtime error has occured. (extension.js)
* `Cannot set property '.css' of undefined`
* `require.extensions` is not existed.