A
A
Andrey Suha2020-01-13 15:25:46
npm
Andrey Suha, 2020-01-13 15:25:46

How to use plugin-proposal-private-methods in npm package?

I wrote a small lib for myself. It used babel plugins for private properties and methods. I install lib to the project via npm i username/git_repo_name. After importing I get an error.
5e1c61238e4c5317771323.png
In a project, babel-loader excludes the node_modules folder. In general, it seems clear what the error is and why it pops up, but it is not clear how to fix it. I'm trying to write a package for the first time, tell me at least what to google))

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question