Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101824692
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
Fri, Feb 14, 02:38
Size
1 KB
Mime Type
text/x-c++
Expires
Sun, Feb 16, 02:38 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24231592
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