https://github.com/momsfriendlydevco/doop-esm-loader
Doop single-file component (SFC) loader for Node
https://github.com/momsfriendlydevco/doop-esm-loader
Last synced: over 1 year ago
JSON representation
Doop single-file component (SFC) loader for Node
- Host: GitHub
- URL: https://github.com/momsfriendlydevco/doop-esm-loader
- Owner: MomsFriendlyDevCo
- License: mit
- Created: 2023-04-04T23:43:08.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-09-25T09:29:13.000Z (almost 3 years ago)
- Last Synced: 2025-03-25T12:50:53.866Z (over 1 year ago)
- Language: JavaScript
- Size: 151 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
@Doop/ESM-Loader
================
Doop single-file component (SFC) loader for Node.
Use with the Doop ESM loader
============================
1. Install the ESM loader into your main project :
```bash
npm i --save @doop/esm-loader
```
2. Modify your package.json file to add the following.
This config includes setup for Mocha and ESLint.
```json
{
"scripts": {
"lint": "eslint --ext .doop --ext .js --ext .vue ."
},
"eslintConfig": {
"extends": [
"@momsfriendlydevco"
],
"parserOptions": {
"ecmaVersion": "latest"
}
},
"mocha": {
"node-option": [
"loader=@doop/esm-loader",
"no-warnings=ExperimentalWarning"
]
}
}
```