Skip to content

Commit

Permalink
bugfix: error on import compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
klich3 committed Oct 10, 2022
1 parent 0c3a20e commit 471f00a
Show file tree
Hide file tree
Showing 8 changed files with 6,504 additions and 7,014 deletions.
10 changes: 9 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,16 @@ module.exports = {
root: true,
env: {
es2021: true,
browser: true,
es6: true,
},
globals: {
ENV: true,
},
extends: ["eslint:recommended"],
parserOptions: {
sourceType: "module",
},
extends: ["eslint:recommended", "plugin:vue/vue3-recommended", "@vue/prettier"],
rules: {
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
Expand Down
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@ and show it on debug panel.
## Install

First install dependece you have two choices
1) `npm i credits-log -g` with cli tool
2) `npm i credits-log --save-dev` only Vite / Rollup plugin
1) `npm i credits-log -g` for ***CLI*** tool
2) `npm i credits-log --save-dev` for Vite / Rollup plugin


In your Vite or Rollup config file add import and use `creditslog()` function in plugins section like this:

```javascript
import { creditslog } from "credits-log"
import creditslog from "credits-log"

export default defineConfig({
...
plugins: [
...
...
creditslog()
...
],
Expand Down Expand Up @@ -94,4 +94,8 @@ like this:
### DOCS
Rollup.js:
* https://rollupjs.org/guide/en/#exporting
* https://rollupjs.org/guide/en/#a-simple-example
* https://rollupjs.org/guide/en/#a-simple-example

### NPM Publish

NPM publish command: `npm publish --access=public ./`
Loading

0 comments on commit 471f00a

Please sign in to comment.