@doop/esm-loader
v1.0.5
Published
Doop single-file component (SFC) loader for Node
Downloads
12
Readme
@Doop/ESM-Loader
Doop single-file component (SFC) loader for Node.
Use with the Doop ESM loader
- Install the ESM loader into your main project :
npm i --save @doop/esm-loader
- Modify your package.json file to add the following.
This config includes setup for Mocha and ESLint.
{
"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"
]
}
}