/babel-plugin-sky0014-store-helper

A helper for @sky0014/store

Primary LanguageJavaScript

babel-plugin-sky0014-store-helper

A helper for @sky0014/store

Install

npm install babel-plugin-sky0014-store-helper

Usage

Install

npm i babel-plugin-sky0014-store-helper --save-dev

Add to babel.config.js

plugins: ["babel-plugin-sky0014-store-helper", ...],  // first place

If you use custom import alias:

import something from "@src/something";

This plugin will auto read tsconfig.json -> paths attribute to handle that.

Otherwise, you should pass alias to plugin like this (just like webpack config alias):

plugins: [["babel-plugin-sky0014-store-helper", { alias: { "@src": "xxxxx" } }], ...],  // first place

Publish

If your first time publish a package, login first:

npm login --registry=http://registry.npmjs.org

Then you can publish:

npm run pub