DEV Community

Discussion on: Publish Your First NPM Package (Vue) - PART 1

Collapse
 
amroessam profile image
amroessam

Hey, maybe I can help.
Can you provide some more context?

Collapse
 
loicgeek profile image
ngou loic • Edited

that is my package.json

{
  "name": "vue-easy-printer",
  "version": "1.0.0",
  "private": false,
  "description": "The Best Vue Plugin To convert Html page, Components to pdf",
  "main": "./dist/index.js",
  "keywords": [
    "Vuejs",
    "html",
    "pdf"
  ],
  "files": [
    "dist/*"
  ],
  "scripts": {
    "build": "bili --name index --plugin vue "
  },
  "author": "loicgeek",
  "license": "MIT",
  "devDependencies": {
    "bili": "^4.8.1",
    "rollup-plugin-vue": "^5.1.2",
    "vue-template-compiler": "^2.6.10"
  }
}

when I run the command to build there are no errors, but on top of my dist/index.js, I got these lines

function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }

var __vue_normalize__ = _interopDefault(require('F:PERSONNALue-easy-printer
ode_modules
ollup-plugin-vue
untime
ormalize.js'));
var __vue_create_injector__ = _interopDefault(require('F:PERSONNALue-easy-printer
ode_modules
ollup-plugin-vue
untimerowser.js'));