babel-plugin-deinject-di 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -0
- package/dist/index.d.mts +7 -0
- package/dist/index.mjs +14183 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +45 -0
package/README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# babel-plugin-deinject-di
|
|
2
|
+
|
|
3
|
+
[](https://npmjs.org/package/babel-plugin-deinject-di)
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
Babel-плагин для внедрения зависимостей с использованием декораторов из пакета `@deinject/core`.
|
|
8
|
+
|
|
9
|
+
## Установка
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install deinject-core
|
|
13
|
+
npm install -D babel-plugin-deinject-di @babel/core
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Конфигурация Babel
|
|
17
|
+
|
|
18
|
+
Создайте файл `babel.config.json` в корне вашего проекта и добавьте следующий код:
|
|
19
|
+
|
|
20
|
+
```json
|
|
21
|
+
{
|
|
22
|
+
"plugins": ["deinject-di"]
|
|
23
|
+
}
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Более подробную информацию о настройке сборки проекта с использованием Babel можно найти в [README пакета deinject-core](https://github.com/outsid3rx/deinject/tree/main/packages/core).
|