@doop/esm-loader

1.0.5 • Public • Published

@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 :
npm i --save @doop/esm-loader
  1. 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"
    ]
  }
}

Readme

Keywords

Package Sidebar

Install

npm i @doop/esm-loader

Weekly Downloads

2

Version

1.0.5

License

MIT

Unpacked Size

18.8 kB

Total Files

8

Last publish

Collaborators

  • hash-bang
  • mr-yellow