Skip to content

Commit

Permalink
feat(deno): Don't bundle @sentry/deno (#15014)
Browse files Browse the repository at this point in the history
  • Loading branch information
timfish authored Jan 17, 2025
1 parent 6dd3fb5 commit c4cb57a
Show file tree
Hide file tree
Showing 13 changed files with 7,673 additions and 5,544 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ jobs:
- name: Set up Deno
uses: denoland/setup-deno@v2.0.1
with:
deno-version: v1.38.5
deno-version: v2.1.5
- name: Restore caches
uses: ./.github/actions/restore-cache
with:
Expand Down
8 changes: 6 additions & 2 deletions dev-packages/rollup-utils/npmHelpers.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,13 @@ export function makeBaseNPMConfig(options = {}) {
}

export function makeNPMConfigVariants(baseConfig, options = {}) {
const { emitEsm = true } = options;
const { emitEsm = true, emitCjs = true } = options;

const variantSpecificConfigs = [{ output: { format: 'cjs', dir: path.join(baseConfig.output.dir, 'cjs') } }];
const variantSpecificConfigs = [];

if (emitCjs) {
variantSpecificConfigs.push({ output: { format: 'cjs', dir: path.join(baseConfig.output.dir, 'cjs') } });
}

if (emitEsm) {
variantSpecificConfigs.push({
Expand Down
Loading

0 comments on commit c4cb57a

Please sign in to comment.