@afterpack/parcel-optimizer 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.
Files changed (2) hide show
  1. package/dist/index.js +2 -1
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import { clearBundleRecord, escapeParcelMarkdown, writeBundleRecord } from "./re
2
2
  import { join } from "node:path";
3
3
  import { text } from "node:stream/consumers";
4
4
  import { processBatch, version } from "@afterpack/core";
5
- import { CONFIG_FILE_NAME, applyResolvedKey, createTelemetryReporter, extractSourceMappingURL, mergeConfig, parseEnvOptions, resolveClientIdentity, runObfuscationPass, toEngineConfig, toPluginOptions, validateConfig } from "@afterpack/integration-utils";
5
+ import { CONFIG_FILE_NAME, applyResolvedKey, createTelemetryReporter, extractSourceMappingURL, mergeConfig, parseEnvOptions, resolveClientIdentity, runObfuscationPass, sourceTypeForOutputFormat, toEngineConfig, toPluginOptions, validateConfig } from "@afterpack/integration-utils";
6
6
  import diagnosticExport from "@parcel/diagnostic";
7
7
  import { Optimizer } from "@parcel/plugin";
8
8
  import sourceMapExport from "@parcel/source-map";
@@ -99,6 +99,7 @@ var src_default = new Optimizer({
99
99
  fileName: `${bundleLegIdentity}.protectionMap.html`
100
100
  },
101
101
  buildLeg: bundleLegIdentity,
102
+ sourceType: sourceTypeForOutputFormat(bundle.env.outputFormat),
102
103
  artifactOptions: {
103
104
  ...config.options.artifactOptions,
104
105
  build: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afterpack/parcel-optimizer",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Parcel 2 optimizer for AfterPack: obfuscate each JavaScript bundle in memory during parcel build",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -26,11 +26,11 @@
26
26
  "@parcel/core": ">=2.9.0"
27
27
  },
28
28
  "dependencies": {
29
- "@afterpack/core": "~0.2.2",
29
+ "@afterpack/core": "~0.2.4",
30
30
  "@parcel/diagnostic": "^2.9.0",
31
31
  "@parcel/plugin": "^2.9.0",
32
32
  "@parcel/source-map": "^2.1.1",
33
- "@afterpack/integration-utils": "0.2.1"
33
+ "@afterpack/integration-utils": "0.2.3"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@biomejs/biome": "2.4.4",