Skip to content

Commit

Permalink
node:
Browse files Browse the repository at this point in the history
  • Loading branch information
voluntas committed May 10, 2024
1 parent 5f939b4 commit 4da0562
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions packages/e2ee/rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import fs from "fs";
import resolve from "@rollup/plugin-node-resolve";
import typescript from "@rollup/plugin-typescript";
import replace from "@rollup/plugin-replace";
import pkg from "./package.json";
import fs from 'node:fs'
import resolve from '@rollup/plugin-node-resolve'
import replace from '@rollup/plugin-replace'
import typescript from '@rollup/plugin-typescript'
import pkg from './package.json'

const banner = `/**
* ${pkg.name}
Expand All @@ -11,12 +11,12 @@ const banner = `/**
* @author: ${pkg.author}
* @license: ${pkg.license}
**/
`;
const workerScript = fs.readFileSync("./_worker/sora_e2ee_worker.js", "base64");
`
const workerScript = fs.readFileSync('./_worker/sora_e2ee_worker.js', 'base64')

export default [
{
input: "src/sora_e2ee.ts",
input: 'src/sora_e2ee.ts',
plugins: [
replace({
__SORA_E2EE_VERSION__: pkg.version,
Expand All @@ -25,15 +25,15 @@ export default [
}),
resolve(),
typescript({
tsconfig: "./tsconfig.json",
tsconfig: './tsconfig.json',
}),
],
output: {
sourcemap: false,
file: "dist/sora_e2ee.mjs",
format: "module",
name: "SoraE2EE",
file: 'dist/sora_e2ee.mjs',
format: 'module',
name: 'SoraE2EE',
banner: banner,
},
},
];
]

0 comments on commit 4da0562

Please sign in to comment.