@powerlines/plugin-rspack 0.5.299 → 0.5.301
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/src/lib/logger.mjs +40 -0
- package/dist/core/src/lib/logger.mjs.map +1 -0
- package/dist/core/src/lib/unplugin/helpers.mjs +19 -0
- package/dist/core/src/lib/unplugin/helpers.mjs.map +1 -0
- package/dist/core/src/lib/unplugin/index.mjs +5 -0
- package/dist/core/src/lib/unplugin/module-resolution.mjs +66 -0
- package/dist/core/src/lib/unplugin/module-resolution.mjs.map +1 -0
- package/dist/core/src/lib/unplugin/plugin.mjs +71 -0
- package/dist/core/src/lib/unplugin/plugin.mjs.map +1 -0
- package/dist/core/src/lib/utilities/source-file.mjs +22 -0
- package/dist/core/src/lib/utilities/source-file.mjs.map +1 -0
- package/dist/core/src/types/api.d.mts +103 -0
- package/dist/core/src/types/api.d.mts.map +1 -0
- package/dist/core/src/types/commands.d.mts +10 -0
- package/dist/core/src/types/commands.d.mts.map +1 -0
- package/dist/core/src/types/config.d.mts +551 -0
- package/dist/core/src/types/config.d.mts.map +1 -0
- package/dist/core/src/types/context.d.mts +511 -0
- package/dist/core/src/types/context.d.mts.map +1 -0
- package/dist/core/src/types/fs.d.mts +487 -0
- package/dist/core/src/types/fs.d.mts.map +1 -0
- package/dist/core/src/types/hooks.d.mts +99 -0
- package/dist/core/src/types/hooks.d.mts.map +1 -0
- package/dist/core/src/types/index.d.mts +9 -0
- package/dist/core/src/types/plugin.d.mts +204 -0
- package/dist/core/src/types/plugin.d.mts.map +1 -0
- package/dist/core/src/types/tsconfig.d.mts +70 -0
- package/dist/core/src/types/tsconfig.d.mts.map +1 -0
- package/dist/core/src/types/unplugin.d.mts +25 -0
- package/dist/core/src/types/unplugin.d.mts.map +1 -0
- package/dist/core/src/types/unplugin.mjs +22 -0
- package/dist/core/src/types/unplugin.mjs.map +1 -0
- package/dist/helpers/index.d.mts +2 -1
- package/dist/helpers/index.mjs +2 -1
- package/dist/helpers/resolve-options.d.mts +16 -0
- package/dist/helpers/resolve-options.d.mts.map +1 -0
- package/dist/helpers/resolve-options.mjs +37 -0
- package/dist/helpers/resolve-options.mjs.map +1 -0
- package/dist/helpers/unplugin.mjs +3 -2
- package/dist/helpers/unplugin.mjs.map +1 -1
- package/dist/index.d.mts +6 -3
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/dist/types/build.d.mts +8 -0
- package/dist/types/build.d.mts.map +1 -0
- package/dist/types/build.mjs +1 -0
- package/dist/types/index.d.mts +3 -2
- package/dist/types/plugin.d.mts +13 -6
- package/dist/types/plugin.d.mts.map +1 -1
- package/package.json +27 -98
- package/dist/_virtual/rolldown_runtime.cjs +0 -31
- package/dist/_virtual/rolldown_runtime.mjs +0 -32
- package/dist/helpers/index.cjs +0 -3
- package/dist/helpers/index.d.cts +0 -2
- package/dist/helpers/unplugin.cjs +0 -11
- package/dist/helpers/unplugin.d.cts +0 -8
- package/dist/helpers/unplugin.d.cts.map +0 -1
- package/dist/index.cjs +0 -37
- package/dist/index.d.cts +0 -14
- package/dist/index.d.cts.map +0 -1
- package/dist/node_modules/.pnpm/@jridgewell_gen-mapping@0.3.13/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.cjs +0 -2
- package/dist/node_modules/.pnpm/@jridgewell_gen-mapping@0.3.13/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs +0 -4
- package/dist/node_modules/.pnpm/@jridgewell_remapping@2.3.5/node_modules/@jridgewell/remapping/dist/remapping.cjs +0 -2
- package/dist/node_modules/.pnpm/@jridgewell_remapping@2.3.5/node_modules/@jridgewell/remapping/dist/remapping.mjs +0 -4
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.cjs +0 -15
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +0 -16
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@jridgewell_trace-mapping@0.3.31/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.cjs +0 -1
- package/dist/node_modules/.pnpm/@jridgewell_trace-mapping@0.3.31/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs +0 -3
- package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/index.cjs +0 -28
- package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/index.mjs +0 -24
- package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/constants.cjs +0 -175
- package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/constants.mjs +0 -171
- package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/constants.mjs.map +0 -1
- package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/parse.cjs +0 -871
- package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/parse.mjs +0 -867
- package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/parse.mjs.map +0 -1
- package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/picomatch.cjs +0 -307
- package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/picomatch.mjs +0 -303
- package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/picomatch.mjs.map +0 -1
- package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/scan.cjs +0 -300
- package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/scan.mjs +0 -296
- package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/scan.mjs.map +0 -1
- package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/utils.cjs +0 -60
- package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/utils.mjs +0 -56
- package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/utils.mjs.map +0 -1
- package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/context-CehLHpzV.cjs +0 -46
- package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/context-CehLHpzV.mjs +0 -45
- package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/context-CehLHpzV.mjs.map +0 -1
- package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/index.cjs +0 -142
- package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/index.mjs +0 -141
- package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/parse-CRORloGP.cjs +0 -114
- package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/parse-CRORloGP.mjs +0 -113
- package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/parse-CRORloGP.mjs.map +0 -1
- package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/utils-CuyC8gTr.cjs +0 -59
- package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/utils-CuyC8gTr.mjs +0 -55
- package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/utils-CuyC8gTr.mjs.map +0 -1
- package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/webpack-like-BU9ULG6P.cjs +0 -35
- package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/webpack-like-BU9ULG6P.mjs +0 -34
- package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/webpack-like-BU9ULG6P.mjs.map +0 -1
- package/dist/node_modules/.pnpm/webpack-virtual-modules@0.6.2/node_modules/webpack-virtual-modules/lib/index.cjs +0 -236
- package/dist/node_modules/.pnpm/webpack-virtual-modules@0.6.2/node_modules/webpack-virtual-modules/lib/index.mjs +0 -232
- package/dist/node_modules/.pnpm/webpack-virtual-modules@0.6.2/node_modules/webpack-virtual-modules/lib/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/webpack-virtual-modules@0.6.2/node_modules/webpack-virtual-modules/lib/virtual-stats.cjs +0 -54
- package/dist/node_modules/.pnpm/webpack-virtual-modules@0.6.2/node_modules/webpack-virtual-modules/lib/virtual-stats.mjs +0 -50
- package/dist/node_modules/.pnpm/webpack-virtual-modules@0.6.2/node_modules/webpack-virtual-modules/lib/virtual-stats.mjs.map +0 -1
- package/dist/types/index.cjs +0 -0
- package/dist/types/index.d.cts +0 -2
- package/dist/types/plugin.cjs +0 -0
- package/dist/types/plugin.d.cts +0 -14
- package/dist/types/plugin.d.cts.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/webpack-virtual-modules@0.6.2/node_modules/webpack-virtual-modules/lib/index.js"],"sourcesContent":["\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nconst path_1 = __importDefault(require(\"path\"));\nconst virtual_stats_1 = require(\"./virtual-stats\");\nlet inode = 45000000;\nconst ALL = 'all';\nconst STATIC = 'static';\nconst DYNAMIC = 'dynamic';\nfunction checkActivation(instance) {\n if (!instance._compiler) {\n throw new Error('You must use this plugin only after creating webpack instance!');\n }\n}\nfunction getModulePath(filePath, compiler) {\n return path_1.default.isAbsolute(filePath) ? filePath : path_1.default.join(compiler.context, filePath);\n}\nfunction createWebpackData(result) {\n return (backendOrStorage) => {\n if (backendOrStorage._data) {\n const curLevelIdx = backendOrStorage._currentLevel;\n const curLevel = backendOrStorage._levels[curLevelIdx];\n return {\n result,\n level: curLevel,\n };\n }\n return [null, result];\n };\n}\nfunction getData(storage, key) {\n if (storage._data instanceof Map) {\n return storage._data.get(key);\n }\n else if (storage._data) {\n return storage.data[key];\n }\n else if (storage.data instanceof Map) {\n return storage.data.get(key);\n }\n else {\n return storage.data[key];\n }\n}\nfunction setData(backendOrStorage, key, valueFactory) {\n const value = valueFactory(backendOrStorage);\n if (backendOrStorage._data instanceof Map) {\n backendOrStorage._data.set(key, value);\n }\n else if (backendOrStorage._data) {\n backendOrStorage.data[key] = value;\n }\n else if (backendOrStorage.data instanceof Map) {\n backendOrStorage.data.set(key, value);\n }\n else {\n backendOrStorage.data[key] = value;\n }\n}\nfunction getStatStorage(fileSystem) {\n if (fileSystem._statStorage) {\n return fileSystem._statStorage;\n }\n else if (fileSystem._statBackend) {\n return fileSystem._statBackend;\n }\n else {\n throw new Error(\"Couldn't find a stat storage\");\n }\n}\nfunction getFileStorage(fileSystem) {\n if (fileSystem._readFileStorage) {\n return fileSystem._readFileStorage;\n }\n else if (fileSystem._readFileBackend) {\n return fileSystem._readFileBackend;\n }\n else {\n throw new Error(\"Couldn't find a readFileStorage\");\n }\n}\nfunction getReadDirBackend(fileSystem) {\n if (fileSystem._readdirBackend) {\n return fileSystem._readdirBackend;\n }\n else if (fileSystem._readdirStorage) {\n return fileSystem._readdirStorage;\n }\n else {\n throw new Error(\"Couldn't find a readDirStorage from Webpack Internals\");\n }\n}\nfunction getRealpathBackend(fileSystem) {\n if (fileSystem._realpathBackend) {\n return fileSystem._realpathBackend;\n }\n}\nclass VirtualModulesPlugin {\n constructor(modules) {\n this._compiler = null;\n this._watcher = null;\n this._staticModules = modules || null;\n }\n getModuleList(filter = ALL) {\n var _a, _b;\n let modules = {};\n const shouldGetStaticModules = filter === ALL || filter === STATIC;\n const shouldGetDynamicModules = filter === ALL || filter === DYNAMIC;\n if (shouldGetStaticModules) {\n modules = Object.assign(Object.assign({}, modules), this._staticModules);\n }\n if (shouldGetDynamicModules) {\n const finalInputFileSystem = (_a = this._compiler) === null || _a === void 0 ? void 0 : _a.inputFileSystem;\n const virtualFiles = (_b = finalInputFileSystem === null || finalInputFileSystem === void 0 ? void 0 : finalInputFileSystem._virtualFiles) !== null && _b !== void 0 ? _b : {};\n const dynamicModules = {};\n Object.keys(virtualFiles).forEach((key) => {\n dynamicModules[key] = virtualFiles[key].contents;\n });\n modules = Object.assign(Object.assign({}, modules), dynamicModules);\n }\n return modules;\n }\n writeModule(filePath, contents) {\n if (!this._compiler) {\n throw new Error(`Plugin has not been initialized`);\n }\n checkActivation(this);\n const len = contents ? contents.length : 0;\n const time = Date.now();\n const date = new Date(time);\n const stats = new virtual_stats_1.VirtualStats({\n dev: 8675309,\n nlink: 0,\n uid: 1000,\n gid: 1000,\n rdev: 0,\n blksize: 4096,\n ino: inode++,\n mode: 33188,\n size: len,\n blocks: Math.floor(len / 4096),\n atime: date,\n mtime: date,\n ctime: date,\n birthtime: date,\n });\n const modulePath = getModulePath(filePath, this._compiler);\n if (process.env.WVM_DEBUG)\n console.log(this._compiler.name, 'Write virtual module:', modulePath, contents);\n let finalWatchFileSystem = this._watcher && this._watcher.watchFileSystem;\n while (finalWatchFileSystem && finalWatchFileSystem.wfs) {\n finalWatchFileSystem = finalWatchFileSystem.wfs;\n }\n let finalInputFileSystem = this._compiler.inputFileSystem;\n while (finalInputFileSystem && finalInputFileSystem._inputFileSystem) {\n finalInputFileSystem = finalInputFileSystem._inputFileSystem;\n }\n finalInputFileSystem._writeVirtualFile(modulePath, stats, contents);\n if (finalWatchFileSystem &&\n finalWatchFileSystem.watcher &&\n (finalWatchFileSystem.watcher.fileWatchers.size || finalWatchFileSystem.watcher.fileWatchers.length)) {\n const fileWatchers = finalWatchFileSystem.watcher.fileWatchers instanceof Map\n ? Array.from(finalWatchFileSystem.watcher.fileWatchers.values())\n : finalWatchFileSystem.watcher.fileWatchers;\n for (let fileWatcher of fileWatchers) {\n if ('watcher' in fileWatcher) {\n fileWatcher = fileWatcher.watcher;\n }\n if (fileWatcher.path === modulePath) {\n if (process.env.DEBUG)\n console.log(this._compiler.name, 'Emit file change:', modulePath, time);\n delete fileWatcher.directoryWatcher._cachedTimeInfoEntries;\n fileWatcher.emit('change', time, null);\n }\n }\n }\n }\n apply(compiler) {\n this._compiler = compiler;\n const afterEnvironmentHook = () => {\n let finalInputFileSystem = compiler.inputFileSystem;\n while (finalInputFileSystem && finalInputFileSystem._inputFileSystem) {\n finalInputFileSystem = finalInputFileSystem._inputFileSystem;\n }\n if (!finalInputFileSystem._writeVirtualFile) {\n const originalPurge = finalInputFileSystem.purge;\n finalInputFileSystem.purge = () => {\n originalPurge.apply(finalInputFileSystem, []);\n if (finalInputFileSystem._virtualFiles) {\n Object.keys(finalInputFileSystem._virtualFiles).forEach((file) => {\n const data = finalInputFileSystem._virtualFiles[file];\n finalInputFileSystem._writeVirtualFile(file, data.stats, data.contents);\n });\n }\n };\n finalInputFileSystem._writeVirtualFile = (file, stats, contents) => {\n const statStorage = getStatStorage(finalInputFileSystem);\n const fileStorage = getFileStorage(finalInputFileSystem);\n const readDirStorage = getReadDirBackend(finalInputFileSystem);\n const realPathStorage = getRealpathBackend(finalInputFileSystem);\n finalInputFileSystem._virtualFiles = finalInputFileSystem._virtualFiles || {};\n finalInputFileSystem._virtualFiles[file] = { stats: stats, contents: contents };\n setData(statStorage, file, createWebpackData(stats));\n setData(fileStorage, file, createWebpackData(contents));\n const segments = file.split(/[\\\\/]/);\n let count = segments.length - 1;\n const minCount = segments[0] ? 1 : 0;\n while (count > minCount) {\n const dir = segments.slice(0, count).join(path_1.default.sep) || path_1.default.sep;\n try {\n finalInputFileSystem.readdirSync(dir);\n }\n catch (e) {\n const time = Date.now();\n const dirStats = new virtual_stats_1.VirtualStats({\n dev: 8675309,\n nlink: 0,\n uid: 1000,\n gid: 1000,\n rdev: 0,\n blksize: 4096,\n ino: inode++,\n mode: 16877,\n size: stats.size,\n blocks: Math.floor(stats.size / 4096),\n atime: time,\n mtime: time,\n ctime: time,\n birthtime: time,\n });\n setData(readDirStorage, dir, createWebpackData([]));\n if (realPathStorage) {\n setData(realPathStorage, dir, createWebpackData(dir));\n }\n setData(statStorage, dir, createWebpackData(dirStats));\n }\n let dirData = getData(getReadDirBackend(finalInputFileSystem), dir);\n dirData = dirData[1] || dirData.result;\n const filename = segments[count];\n if (dirData.indexOf(filename) < 0) {\n const files = dirData.concat([filename]).sort();\n setData(getReadDirBackend(finalInputFileSystem), dir, createWebpackData(files));\n }\n else {\n break;\n }\n count--;\n }\n };\n }\n };\n const afterResolversHook = () => {\n if (this._staticModules) {\n for (const [filePath, contents] of Object.entries(this._staticModules)) {\n this.writeModule(filePath, contents);\n }\n this._staticModules = null;\n }\n };\n const version = typeof compiler.webpack === 'undefined' ? 4 : 5;\n const watchRunHook = (watcher, callback) => {\n this._watcher = watcher.compiler || watcher;\n const virtualFiles = compiler.inputFileSystem._virtualFiles;\n const fts = compiler.fileTimestamps;\n if (virtualFiles && fts && typeof fts.set === 'function') {\n Object.keys(virtualFiles).forEach((file) => {\n const mtime = +virtualFiles[file].stats.mtime;\n fts.set(file, version === 4\n ? mtime\n : {\n safeTime: mtime,\n timestamp: mtime,\n });\n });\n }\n callback();\n };\n if (compiler.hooks) {\n compiler.hooks.afterEnvironment.tap('VirtualModulesPlugin', afterEnvironmentHook);\n compiler.hooks.afterResolvers.tap('VirtualModulesPlugin', afterResolversHook);\n compiler.hooks.watchRun.tapAsync('VirtualModulesPlugin', watchRunHook);\n }\n else {\n compiler.plugin('after-environment', afterEnvironmentHook);\n compiler.plugin('after-resolvers', afterResolversHook);\n compiler.plugin('watch-run', watchRunHook);\n }\n }\n}\nmodule.exports = VirtualModules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,aAAS,OAAO,qBAAqB,qBAAqB;AAC1D,aAAS,OAAO,mBAAmB,mBAAmB;AACtD,aAAS,OAAO,aAAa,aAAa;;;;AAItD,QAAO,UAAU"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
const require_rolldown_runtime = require('../../../../../../_virtual/rolldown_runtime.cjs');
|
|
4
|
-
|
|
5
|
-
//#region ../../node_modules/.pnpm/webpack-virtual-modules@0.6.2/node_modules/webpack-virtual-modules/lib/virtual-stats.js
|
|
6
|
-
var require_virtual_stats = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports) => {
|
|
7
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
8
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
9
|
-
};
|
|
10
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.VirtualStats = void 0;
|
|
12
|
-
const constants_1 = __importDefault(require("node:constants"));
|
|
13
|
-
var VirtualStats = class {
|
|
14
|
-
constructor(config) {
|
|
15
|
-
for (const key in config) {
|
|
16
|
-
if (!Object.prototype.hasOwnProperty.call(config, key)) continue;
|
|
17
|
-
this[key] = config[key];
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
_checkModeProperty(property) {
|
|
21
|
-
return (this.mode & constants_1.default.S_IFMT) === property;
|
|
22
|
-
}
|
|
23
|
-
isDirectory() {
|
|
24
|
-
return this._checkModeProperty(constants_1.default.S_IFDIR);
|
|
25
|
-
}
|
|
26
|
-
isFile() {
|
|
27
|
-
return this._checkModeProperty(constants_1.default.S_IFREG);
|
|
28
|
-
}
|
|
29
|
-
isBlockDevice() {
|
|
30
|
-
return this._checkModeProperty(constants_1.default.S_IFBLK);
|
|
31
|
-
}
|
|
32
|
-
isCharacterDevice() {
|
|
33
|
-
return this._checkModeProperty(constants_1.default.S_IFCHR);
|
|
34
|
-
}
|
|
35
|
-
isSymbolicLink() {
|
|
36
|
-
return this._checkModeProperty(constants_1.default.S_IFLNK);
|
|
37
|
-
}
|
|
38
|
-
isFIFO() {
|
|
39
|
-
return this._checkModeProperty(constants_1.default.S_IFIFO);
|
|
40
|
-
}
|
|
41
|
-
isSocket() {
|
|
42
|
-
return this._checkModeProperty(constants_1.default.S_IFSOCK);
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
exports.VirtualStats = VirtualStats;
|
|
46
|
-
}));
|
|
47
|
-
|
|
48
|
-
//#endregion
|
|
49
|
-
Object.defineProperty(exports, 'default', {
|
|
50
|
-
enumerable: true,
|
|
51
|
-
get: function () {
|
|
52
|
-
return require_virtual_stats();
|
|
53
|
-
}
|
|
54
|
-
});
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin, __require } from "../../../../../../_virtual/rolldown_runtime.mjs";
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.pnpm/webpack-virtual-modules@0.6.2/node_modules/webpack-virtual-modules/lib/virtual-stats.js
|
|
4
|
-
var require_virtual_stats = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
6
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.VirtualStats = void 0;
|
|
10
|
-
const constants_1 = __importDefault(__require("node:constants"));
|
|
11
|
-
var VirtualStats = class {
|
|
12
|
-
constructor(config) {
|
|
13
|
-
for (const key in config) {
|
|
14
|
-
if (!Object.prototype.hasOwnProperty.call(config, key)) continue;
|
|
15
|
-
this[key] = config[key];
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
_checkModeProperty(property) {
|
|
19
|
-
return (this.mode & constants_1.default.S_IFMT) === property;
|
|
20
|
-
}
|
|
21
|
-
isDirectory() {
|
|
22
|
-
return this._checkModeProperty(constants_1.default.S_IFDIR);
|
|
23
|
-
}
|
|
24
|
-
isFile() {
|
|
25
|
-
return this._checkModeProperty(constants_1.default.S_IFREG);
|
|
26
|
-
}
|
|
27
|
-
isBlockDevice() {
|
|
28
|
-
return this._checkModeProperty(constants_1.default.S_IFBLK);
|
|
29
|
-
}
|
|
30
|
-
isCharacterDevice() {
|
|
31
|
-
return this._checkModeProperty(constants_1.default.S_IFCHR);
|
|
32
|
-
}
|
|
33
|
-
isSymbolicLink() {
|
|
34
|
-
return this._checkModeProperty(constants_1.default.S_IFLNK);
|
|
35
|
-
}
|
|
36
|
-
isFIFO() {
|
|
37
|
-
return this._checkModeProperty(constants_1.default.S_IFIFO);
|
|
38
|
-
}
|
|
39
|
-
isSocket() {
|
|
40
|
-
return this._checkModeProperty(constants_1.default.S_IFSOCK);
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
exports.VirtualStats = VirtualStats;
|
|
44
|
-
}));
|
|
45
|
-
|
|
46
|
-
//#endregion
|
|
47
|
-
export default require_virtual_stats();
|
|
48
|
-
|
|
49
|
-
export { require_virtual_stats };
|
|
50
|
-
//# sourceMappingURL=virtual-stats.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"virtual-stats.mjs","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/webpack-virtual-modules@0.6.2/node_modules/webpack-virtual-modules/lib/virtual-stats.js"],"sourcesContent":["\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.VirtualStats = void 0;\nconst constants_1 = __importDefault(require(\"constants\"));\nclass VirtualStats {\n constructor(config) {\n for (const key in config) {\n if (!Object.prototype.hasOwnProperty.call(config, key)) {\n continue;\n }\n this[key] = config[key];\n }\n }\n _checkModeProperty(property) {\n return (this.mode & constants_1.default.S_IFMT) === property;\n }\n isDirectory() {\n return this._checkModeProperty(constants_1.default.S_IFDIR);\n }\n isFile() {\n return this._checkModeProperty(constants_1.default.S_IFREG);\n }\n isBlockDevice() {\n return this._checkModeProperty(constants_1.default.S_IFBLK);\n }\n isCharacterDevice() {\n return this._checkModeProperty(constants_1.default.S_IFCHR);\n }\n isSymbolicLink() {\n return this._checkModeProperty(constants_1.default.S_IFLNK);\n }\n isFIFO() {\n return this._checkModeProperty(constants_1.default.S_IFIFO);\n }\n isSocket() {\n return this._checkModeProperty(constants_1.default.S_IFSOCK);\n }\n}\nexports.VirtualStats = VirtualStats;\n//# sourceMappingURL=virtual-stats.js.map"],"x_google_ignoreList":[0],"mappings":";;;;CACA,IAAI,qCAAgC,mBAAoB,SAAU,KAAK;AACnE,SAAQ,OAAO,IAAI,aAAc,MAAM,EAAE,WAAW,KAAK;;AAE7D,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,eAAe,KAAK;CAC5B,MAAM,cAAc,0BAAwB,iBAAY,CAAC;CACzD,IAAM,eAAN,MAAmB;EACf,YAAY,QAAQ;AAChB,QAAK,MAAM,OAAO,QAAQ;AACtB,QAAI,CAAC,OAAO,UAAU,eAAe,KAAK,QAAQ,IAAI,CAClD;AAEJ,SAAK,OAAO,OAAO;;;EAG3B,mBAAmB,UAAU;AACzB,WAAQ,KAAK,OAAO,YAAY,QAAQ,YAAY;;EAExD,cAAc;AACV,UAAO,KAAK,mBAAmB,YAAY,QAAQ,QAAQ;;EAE/D,SAAS;AACL,UAAO,KAAK,mBAAmB,YAAY,QAAQ,QAAQ;;EAE/D,gBAAgB;AACZ,UAAO,KAAK,mBAAmB,YAAY,QAAQ,QAAQ;;EAE/D,oBAAoB;AAChB,UAAO,KAAK,mBAAmB,YAAY,QAAQ,QAAQ;;EAE/D,iBAAiB;AACb,UAAO,KAAK,mBAAmB,YAAY,QAAQ,QAAQ;;EAE/D,SAAS;AACL,UAAO,KAAK,mBAAmB,YAAY,QAAQ,QAAQ;;EAE/D,WAAW;AACP,UAAO,KAAK,mBAAmB,YAAY,QAAQ,SAAS;;;AAGpE,SAAQ,eAAe"}
|
package/dist/types/index.cjs
DELETED
|
File without changes
|
package/dist/types/index.d.cts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { RspackPluginContext, RspackPluginOptions, RspackPluginResolvedConfig, __ΩRspackPluginContext, __ΩRspackPluginOptions, __ΩRspackPluginResolvedConfig } from "./plugin.cjs";
|
|
2
|
-
export { RspackPluginContext, RspackPluginOptions, RspackPluginResolvedConfig, __ΩRspackPluginContext, __ΩRspackPluginOptions, __ΩRspackPluginResolvedConfig };
|
package/dist/types/plugin.cjs
DELETED
|
File without changes
|
package/dist/types/plugin.d.cts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { RspackBuildConfig } from "powerlines/types/build";
|
|
2
|
-
import { PluginContext } from "powerlines/types/context";
|
|
3
|
-
import { RspackResolvedConfig } from "powerlines/types/resolved";
|
|
4
|
-
|
|
5
|
-
//#region src/types/plugin.d.ts
|
|
6
|
-
type RspackPluginOptions = Partial<RspackBuildConfig>;
|
|
7
|
-
type RspackPluginResolvedConfig = RspackResolvedConfig;
|
|
8
|
-
type RspackPluginContext<TResolvedConfig extends RspackPluginResolvedConfig = RspackPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
9
|
-
declare type __ΩRspackPluginOptions = any[];
|
|
10
|
-
declare type __ΩRspackPluginResolvedConfig = any[];
|
|
11
|
-
declare type __ΩRspackPluginContext = any[];
|
|
12
|
-
//#endregion
|
|
13
|
-
export { RspackPluginContext, RspackPluginOptions, RspackPluginResolvedConfig, __ΩRspackPluginContext, __ΩRspackPluginOptions, __ΩRspackPluginResolvedConfig };
|
|
14
|
-
//# sourceMappingURL=plugin.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;KAsBY,mBAAA,GAAsB,QAAQ;KAE9B,0BAAA,GAA6B;AAF7B,KAIA,mBAJmB,CAAA,wBAM3B,0BANqC,GAMR,0BANQ,CAAA,GAOrC,aAPqC,CAOvB,eAPuB,CAAA;AAE7B,sCAA6B,GAAA,EAAA;AAE7B,6CAAmB,GAAA,EAAA;AAE3B,sCAAA,GAAA,EAAA"}
|