fix(web): fix json imports in rollup with swc (#11436)

moved the json plugin to be before the swc plugin in the rollup executor

ISSUES CLOSED: 11435
This commit is contained in:
seanboose 2022-08-04 09:43:06 -05:00 committed by GitHub
parent eae3d45625
commit b6bbd41b27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -205,6 +205,7 @@ export function createRollupOptions(
),
}),
image(),
json(),
useBabel &&
require('rollup-plugin-typescript2')({
check: true,
@ -258,7 +259,6 @@ export function createRollupOptions(
}),
commonjs(),
analyze(),
json(),
];
const globals = options.globals