@afterpack/rollup 0.2.1 → 0.2.3
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/index.cjs +1 -0
- package/dist/index.js +2 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -111,6 +111,7 @@ function afterpackRollup(options = {}) {
|
|
|
111
111
|
afterpackDir: gitignoredNonServedAfterpackDir
|
|
112
112
|
},
|
|
113
113
|
...(0, __afterpack_integration_utils.passSettings)(resolved),
|
|
114
|
+
sourceType: (0, __afterpack_integration_utils.sourceTypeForBundle)(outputOptions.format, entries.values()),
|
|
114
115
|
hasBundlerSourcemap: Boolean(outputOptions.sourcemap),
|
|
115
116
|
messages: { autoEnableBundlerSourcemap: "protectionMap:true but no bundler sourcemap was found; set `output.sourcemap: true` so future builds can render original source in the map." }
|
|
116
117
|
});
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { dirname, join } from "node:path";
|
|
2
2
|
import { processBatch, version } from "@afterpack/core";
|
|
3
|
-
import { applyBundleOutput, collectBundleJs, createTelemetryReporter, passSettings, resolveClientIdentity, resolvePluginConfig, runObfuscationPass, scanDirectives, stripBundleCssSourceMaps, writeDeferredProtectionReceipt } from "@afterpack/integration-utils";
|
|
3
|
+
import { applyBundleOutput, collectBundleJs, createTelemetryReporter, passSettings, resolveClientIdentity, resolvePluginConfig, runObfuscationPass, scanDirectives, sourceTypeForBundle, stripBundleCssSourceMaps, writeDeferredProtectionReceipt } from "@afterpack/integration-utils";
|
|
4
4
|
|
|
5
5
|
//#region src/index.ts
|
|
6
6
|
const PATHS_INCLUDE_UNSUPPORTED = "this plugin obfuscates Rollup's own bundle, in the pipeline — there is no output-directory walk for a glob to re-admit anything into. Use `npx afterpack <dir> --paths.include=...` for a disk walk, or drop the key.";
|
|
@@ -88,6 +88,7 @@ function afterpackRollup(options = {}) {
|
|
|
88
88
|
afterpackDir: gitignoredNonServedAfterpackDir
|
|
89
89
|
},
|
|
90
90
|
...passSettings(resolved),
|
|
91
|
+
sourceType: sourceTypeForBundle(outputOptions.format, entries.values()),
|
|
91
92
|
hasBundlerSourcemap: Boolean(outputOptions.sourcemap),
|
|
92
93
|
messages: { autoEnableBundlerSourcemap: "protectionMap:true but no bundler sourcemap was found; set `output.sourcemap: true` so future builds can render original source in the map." }
|
|
93
94
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@afterpack/rollup",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Rollup plugin for AfterPack: obfuscate your JavaScript output during the Rollup build",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"rollup": "^3.0.0 || ^4.0.0"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@afterpack/core": "~0.2.
|
|
32
|
-
"@afterpack/integration-utils": "0.2.
|
|
31
|
+
"@afterpack/core": "~0.2.4",
|
|
32
|
+
"@afterpack/integration-utils": "0.2.3"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@biomejs/biome": "2.4.4",
|