An open API service indexing awesome lists of open source software.

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

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"
]
}
}
```