UNPKG
threads
Version:
esm (1.0.0-beta-esm.2)
latest (1.7.0)
next (1.0.0-alpha.4)
test (1.0.0-beta.5-feature-156.1)
testing (1.6.3-callbacks)
1.7.0
1.6.5
1.6.4
1.6.3
1.6.3-callbacks
1.6.2
1.6.1
1.6.1-proxy-unsubscribe
1.6.0
1.6.0-conditional-exports
1.5.0
1.4.1
1.4.1-test-ci-publish.2
1.4.1-test-ci-publish
1.4.1-extended-error-reporting
1.4.0
1.4.0-resolve-asar-immediately
1.4.0-error-reporting-fix
1.3.1
1.3.1-asar.unpack.3
1.3.1-asar.unpack.2
1.3.1-asar.unpack
1.3.0
1.2.1-test
1.2.0
1.1.0
1.0.2
1.0.1
1.0.0
1.0.0-beta-esm.2
1.0.0-beta-esm.1
1.0.0-beta-esm
1.0.0-beta.5-feature-156.1
1.0.0-beta.5-feature-156
1.0.0-beta.3-bugfix-148
1.0.0-beta.3-bugfix-147
1.0.0-beta.2-tsconfig.2
1.0.0-beta.2-tsconfig
1.0.0-beta.2-ts-node-worker
1.0.0-beta.9
1.0.0-beta.8
1.0.0-beta.7
1.0.0-beta.6
1.0.0-beta.5
1.0.0-beta.4
1.0.0-beta.3
1.0.0-beta.2
1.0.0-beta.1
1.0.0-beta
1.0.0-alpha.4
1.0.0-alpha.3
1.0.0-alpha.2
1.0.0-alpha
0.12.1
0.12.0
0.11.0
0.11.0-umd
0.10.1
0.10.0
0.9.0
0.8.1
0.8.0
0.8.0-publish-test
0.7.3
0.7.2
0.7.1
0.7.0
0.6.1
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
Web workers & worker threads as simple as a function call
threads.js.org
andywer/threads.js
threads
/
rollup.config.js
15 lines
(12 loc)
•
283 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const
commonjs
=
require
(
"@rollup/plugin-commonjs"
)
const
{ nodeResolve } =
require
(
"@rollup/plugin-node-resolve"
) module.exports = { plugins: [
nodeResolve
({
browser
:
true
,
mainFields
: [
"module"
,
"main"
],
preferBuiltins
:
true
}),
commonjs
() ] };