Skip to content

Commit

Permalink
fix(web): fix json imports in rollup with swc (nrwl#11436)
Browse files Browse the repository at this point in the history
moved the json plugin to be before the swc plugin in the rollup executor

ISSUES CLOSED: 11435
  • Loading branch information
seanboose authored Aug 4, 2022
1 parent eae3d45 commit b6bbd41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web/src/executors/rollup/rollup.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ export function createRollupOptions(
),
}),
image(),
json(),
useBabel &&
require('rollup-plugin-typescript2')({
check: true,
Expand Down Expand Up @@ -258,7 +259,6 @@ export function createRollupOptions(
}),
commonjs(),
analyze(),
json(),
];

const globals = options.globals
Expand Down

0 comments on commit b6bbd41

Please sign in to comment.