Skip to content

Commit cd1b034

Browse files
committed
upgrade to node 24 (#45)
fix broken pipeline
1 parent bf63c90 commit cd1b034

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

rollup.config.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import { join } from 'path';
44
import typescript from '@rollup/plugin-typescript';
55
import { visualizer } from 'rollup-plugin-visualizer';
66

7-
const getTSConfig = async (path) => {
8-
const tsConfig = (await import('./tsconfig.json', { assert: { type: 'json' } })).default;
7+
import tsConfig from './tsconfig.json' with { type: 'json' };
98

9+
const getTSConfig = (path) => {
1010
tsConfig.compilerOptions.outDir = path;
1111
tsConfig.compilerOptions.declarationDir = join(path, 'types');
1212
return tsConfig.compilerOptions;
@@ -23,7 +23,7 @@ export default [
2323
nodeResolve({ preferBuiltins: true }),
2424
// json(),
2525
typescript({
26-
...await getTSConfig('dist/globaljs'),
26+
...getTSConfig('dist/globaljs'),
2727
sourceMap: true,
2828
outDir: 'dist/globaljs',
2929
declaration: false,
@@ -58,7 +58,7 @@ export default [
5858
nodeResolve({ preferBuiltins: true }),
5959
json(),
6060
typescript({
61-
...await getTSConfig('dist/esm'),
61+
...getTSConfig('dist/esm'),
6262
}),
6363
visualizer({ filename: 'bundle-stats-esm.html' }),
6464
],
@@ -87,7 +87,7 @@ export default [
8787
nodeResolve({ preferBuiltins: true }),
8888
json(),
8989
typescript({
90-
...await getTSConfig('dist/ssr'),
90+
...getTSConfig('dist/ssr'),
9191
sourceMap: true,
9292
outDir: 'dist/ssr',
9393
declaration: true,

0 commit comments

Comments
 (0)