一覧へ戻る
unjs-archive/rollup-plugin-node-deno(新しいタブで開きます)
主要言語: TypeScript
Convert NodeJS to Deno compatible code with rollup
- star 数
- 28
- watcher 数
- 2
- fork 数
- 2
- issue 数
- 8
- 最終更新
- 2023/02/17
主要言語: TypeScript
Convert NodeJS to Deno compatible code with rollup
Convert NodeJS to Deno compatible code with rollup.
timers by usage🧪 Note: This is an experimental plugin.
# npm npm install rollup-plugin-node-deno # yarn yarn add rollup-plugin-node-deno
Example rollup.config file:
Note: Config below needs installing @rollup/plugin-node-resolve @rollup/plugin-commonjs @rollup/plugin-json.
import resolve from '@rollup/plugin-node-resolve' import commonjs from '@rollup/plugin-commonjs' import json from '@rollup/plugin-json' import deno from 'rollup-plugin-node-deno' export default { input: 'src/index.mjs', output: { file: 'dist/index.mjs', format: 'esm' }, plugins: [ deno(), resolve(), json(), commonjs() ] }
Deno Node compatibility (https://deno.land/std@0.160.0/node/README.md):
assertassert/strict partlyasync_hooks partlybufferchild_process partlycluster partlyconsole partlyconstants partlycrypto partlydgram partlydiagnostics_channeldns partlyeventsfs partlyfs/promises partlyhttp partlyhttp2https partlyinspector partlymodulenetos partlypathpath/posixpath/win32perf_hooksprocess partlypunycodequerystringreadlinerepl partlystreamstream/promisesstream/web partlystring_decodersystimerstimers/promisestlstrace_eventstty partlyurlutil partlyutil/types partlyv8vm partlywasiwebcryptoworker_threadszlibExtras: (see ./lib/extras)
node-fetch (using native fetch)chalk (using deno.land/x/chalk_deno)Globals:
processglobal (~> globalThis)BuffersetTimeout, clearTimeout, setInterval, clearInterval, setImmediate, clearImmediate)MIT