@afterpack/vite 0.2.0-rc.20260930T1421 → 0.2.1
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
|
@@ -125,6 +125,7 @@ function afterpackVite(options = {}) {
|
|
|
125
125
|
const entry = entries.get(out.path);
|
|
126
126
|
if (entry) (0, __afterpack_integration_utils.applyBundleOutput)(bundle, entry, out, result.policy);
|
|
127
127
|
}
|
|
128
|
+
if (!result.policy.sourceMap) (0, __afterpack_integration_utils.stripBundleCssSourceMaps)(bundle);
|
|
128
129
|
if (result.deferredReceipt) deferredReceiptByOutDir.set(outDir, result.deferredReceipt);
|
|
129
130
|
}
|
|
130
131
|
},
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { join, resolve } from "node:path";
|
|
2
2
|
import { processBatch, version } from "@afterpack/core";
|
|
3
|
-
import { applyBundleOutput, collectBundleJs, createTelemetryReporter, passSettings, resolveClientIdentity, resolvePluginConfig, runObfuscationPass, scanDirectives, writeDeferredProtectionReceipt } from "@afterpack/integration-utils";
|
|
3
|
+
import { applyBundleOutput, collectBundleJs, createTelemetryReporter, passSettings, resolveClientIdentity, resolvePluginConfig, runObfuscationPass, scanDirectives, stripBundleCssSourceMaps, writeDeferredProtectionReceipt } from "@afterpack/integration-utils";
|
|
4
4
|
|
|
5
5
|
//#region src/index.ts
|
|
6
6
|
const LOCAL_KEYS = ["leg", "projectRoot"];
|
|
@@ -102,6 +102,7 @@ function afterpackVite(options = {}) {
|
|
|
102
102
|
const entry = entries.get(out.path);
|
|
103
103
|
if (entry) applyBundleOutput(bundle, entry, out, result.policy);
|
|
104
104
|
}
|
|
105
|
+
if (!result.policy.sourceMap) stripBundleCssSourceMaps(bundle);
|
|
105
106
|
if (result.deferredReceipt) deferredReceiptByOutDir.set(outDir, result.deferredReceipt);
|
|
106
107
|
}
|
|
107
108
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@afterpack/vite",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Vite plugin for AfterPack: obfuscate your production JavaScript during vite build",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@afterpack/core": "~0.2.
|
|
32
|
-
"@afterpack/integration-utils": "0.2.
|
|
31
|
+
"@afterpack/core": "~0.2.2",
|
|
32
|
+
"@afterpack/integration-utils": "0.2.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@biomejs/biome": "2.4.4",
|