Skip to content

Commit

Permalink
refactor!: Switch default bundle type to endoZipBase64
Browse files Browse the repository at this point in the history
*BREAKING CHANGE*: This change switches the default bundle format from
`nestedEvaluate` to `endoZipBase64`.
The new bundle format has a fundamentally different shape and content,
so any existing code that depends on being able to inspect the `source`
string of the bundle will break.
This functionality will be replaced with a new feature for
consistent-hash integrity checking. #3859
  • Loading branch information
kriskowal committed Sep 23, 2021
1 parent 3efb36e commit 53cc1e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bundle-source/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { SourceMapConsumer } from 'source-map';

import './types.js';

const DEFAULT_MODULE_FORMAT = 'nestedEvaluate';
const DEFAULT_MODULE_FORMAT = 'endoZipBase64';
const DEFAULT_FILE_PREFIX = '/bundled-source/...';
const SUPPORTED_FORMATS = ['getExport', 'nestedEvaluate', 'endoZipBase64'];

Expand Down

0 comments on commit 53cc1e5

Please sign in to comment.