javascript - Compiling down to Vanilla JS for NPM package -


i'm using npm pack export local package use in projects. uses es6, jsx , other new features. when run npm install <tarball> in new project, gets unexpected token errors when tries import package. tried having prepublish script used webpack config file compile /dist , set package.json's main key dist/compiledpackage.js wasn't able import package either. want export react component use in other projects running npm install thatreactcomponenttarball. how can this?


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -