Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lin-xi/babel-plugin-inline-file
babel-plugin-inline-file
https://github.com/lin-xi/babel-plugin-inline-file
Last synced: 26 days ago
JSON representation
babel-plugin-inline-file
- Host: GitHub
- URL: https://github.com/lin-xi/babel-plugin-inline-file
- Owner: lin-xi
- License: mit
- Created: 2022-07-06T03:48:17.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-08-23T09:18:50.000Z (over 2 years ago)
- Last Synced: 2024-12-08T10:36:37.608Z (about 1 month ago)
- Language: JavaScript
- Size: 53.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# babel-plugin-inline-file
This plugin is target to inject C# code for edge-js。
## js
```
edge.func({
source: function(){__inline("camera.cs")},
references: [
path.join(__static, "face/Intel.RealSense.dll")
],
})
```## camera.cs
```
/*
#r "System.Drawing.dll"
using System;
using System.Drawing;
using Intel.RealSense;
using System.Threading.Tasks;//some code
*/
```## install
```
yarn add babel-plugin-inline-file -D
```## .babelrc
```
{
"plugins": [
"babel-plugin-inline-file"
]
}```