UNPKG

@csound/browser

Version:

[![npm (scoped with tag)](https://shields.shivering-isles.com/npm/v/@csound/browser/latest)](https://www.npmjs.com/package/@csound/browser) [![GitHub Workflow Status](https://shields.shivering-isles.com/github/workflow/status/csound/csound/csound_wasm)](h

17 lines (14 loc) 380 B
const path = require("path"); const fs = require("fs"); const constants = fs .readFileSync(path.resolve(__dirname, "../src/constants.js")) .toString(); const main = fs .readFileSync(path.resolve(__dirname, "../src/csound.worklet.js")) .toString(); fs.writeFileSync( path.resolve(__dirname, "../src/worklet.bundle.js"), `/* eslint-disable */ ${constants} ${main}` );