Skip to content

Commit

Permalink
clear seedrandom (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
ishiko732 authored Aug 24, 2024
1 parent 65fd676 commit 074cc88
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import esbuild from 'rollup-plugin-esbuild';
import commonjs from '@rollup/plugin-commonjs';
import dts from 'rollup-plugin-dts';


export default defineConfig([
{
input: {
Expand All @@ -30,17 +29,15 @@ export default defineConfig([
},
],
plugins: [
// 对于 fs、path 等内置模块不再搜索 node_modules
resolve({preferBuiltins: true}),
// 设置目标为 node >= 16.0
esbuild({
target: 'node16.0',
target: 'node18.0',
sourceMap: true,
minify: true,
}),
commonjs(),
],
external: ["seedrandom"],
external: [],
},
{
input: 'src/fsrs/index.ts',
Expand All @@ -49,9 +46,6 @@ export default defineConfig([
format: 'umd',
name: 'FSRS',
sourcemap: true,
globals: {
seedrandom: 'seedrandom',
},
},
plugins: [
resolve(),
Expand All @@ -62,7 +56,7 @@ export default defineConfig([
}),
commonjs(),
],
external: ["seedrandom"],
external: [],
},
{
input: 'src/fsrs/index.ts',
Expand All @@ -77,6 +71,6 @@ export default defineConfig([
respectExternal: true,
}),
],
external: ["seedrandom"],
external: [],
},
]);

0 comments on commit 074cc88

Please sign in to comment.