Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F121652025
NodeTargetPlugin.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Jul 12, 20:25
Size
1 KB
Mime Type
text/x-c++
Expires
Mon, Jul 14, 20:25 (2 d)
Engine
blob
Format
Raw Data
Handle
27367588
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
NodeTargetPlugin.js
View Options
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict"
;
const
ExternalsPlugin
=
require
(
"../ExternalsPlugin"
);
/** @typedef {import("../Compiler")} Compiler */
const
builtins
=
[
"assert"
,
"async_hooks"
,
"buffer"
,
"child_process"
,
"cluster"
,
"console"
,
"constants"
,
"crypto"
,
"dgram"
,
"dns"
,
"dns/promises"
,
"domain"
,
"events"
,
"fs"
,
"fs/promises"
,
"http"
,
"http2"
,
"https"
,
"inspector"
,
"module"
,
"net"
,
"os"
,
"path"
,
"perf_hooks"
,
"process"
,
"punycode"
,
"querystring"
,
"readline"
,
"repl"
,
"stream"
,
"stream/promises"
,
"string_decoder"
,
"sys"
,
"timers"
,
"timers/promises"
,
"tls"
,
"trace_events"
,
"tty"
,
"url"
,
"util"
,
"v8"
,
"vm"
,
"wasi"
,
// cSpell:ignore wasi
"worker_threads"
,
"zlib"
];
class
NodeTargetPlugin
{
/**
* Apply the plugin
* @param {Compiler} compiler the compiler instance
* @returns {void}
*/
apply
(
compiler
)
{
new
ExternalsPlugin
(
"commonjs"
,
builtins
).
apply
(
compiler
);
}
}
module
.
exports
=
NodeTargetPlugin
;
Event Timeline
Log In to Comment