dummy-worker
TypeScript icon, indicating that this package has built-in type declarations

0.0.9 • Public • Published

dummy-worker

This is a proof of concept library used to find a way to configure build to achieve inlining of both web worker and webassembly into library js bundle. This "library" can be used, for example, in your react app like this:

import React from "react";
import { logWorker } from 'dummy-worker'
 
function App() {
  // creates a web worker which instantiates and uses a wasm module
  logWorker() 
  return <h1>Hello WW and WASM</h1>;
}
 
export default App;

It does nothing but print some messages in console.

/dummy-worker/

    Package Sidebar

    Install

    npm i dummy-worker

    Weekly Downloads

    15

    Version

    0.0.9

    License

    ISC

    Unpacked Size

    370 kB

    Total Files

    6

    Last publish

    Collaborators

    • maksim.nesterenko