Fix issue with unexpected assert identifier
This commit is contained in:
parent
38290d70b6
commit
e98929fc5d
@ -2,7 +2,9 @@ import esbuild from 'rollup-plugin-esbuild';
|
|||||||
import { nodeResolve } from '@rollup/plugin-node-resolve';
|
import { nodeResolve } from '@rollup/plugin-node-resolve';
|
||||||
import commonjs from '@rollup/plugin-commonjs';
|
import commonjs from '@rollup/plugin-commonjs';
|
||||||
import json from '@rollup/plugin-json';
|
import json from '@rollup/plugin-json';
|
||||||
import pkgJson from './package.json' assert { type: 'json' };
|
import { readFileSync } from 'fs';
|
||||||
|
|
||||||
|
const pkgJson = JSON.parse(readFileSync("./package.json"));
|
||||||
|
|
||||||
const external = Object.keys(pkgJson.dependencies).concat(
|
const external = Object.keys(pkgJson.dependencies).concat(
|
||||||
Object.keys(pkgJson.optionalDependencies),
|
Object.keys(pkgJson.optionalDependencies),
|
||||||
|
Loading…
Reference in New Issue
Block a user