/* eslint-disable n/no-unpublished-import */
import typescript from '@rollup/plugin-typescript'
import del from 'rollup-plugin-delete'
+import { defineConfig } from 'rollup'
-export default {
+export default defineConfig({
input: ['./src/main.ts', './src/worker.ts'],
strictDeprecations: true,
output: [
targets: ['./dist/*']
})
]
-}
+})
/* eslint-disable n/no-unpublished-import */
import typescript from '@rollup/plugin-typescript'
import del from 'rollup-plugin-delete'
+import { defineConfig } from 'rollup'
-export default {
+export default defineConfig({
input: [
'./src/main.ts',
'./src/express-worker.ts',
targets: ['./dist/*']
})
]
-}
+})
/* eslint-disable n/no-unpublished-import */
import typescript from '@rollup/plugin-typescript'
import del from 'rollup-plugin-delete'
+import { defineConfig } from 'rollup'
-export default {
+export default defineConfig({
input: ['./src/main.ts', './src/worker.ts'],
strictDeprecations: true,
output: [
targets: ['./dist/*']
})
]
-}
+})
/* eslint-disable n/no-unpublished-import */
import typescript from '@rollup/plugin-typescript'
import del from 'rollup-plugin-delete'
+import { defineConfig } from 'rollup'
-export default {
+export default defineConfig({
input: [
'./src/main.ts',
'./src/fastify-worker.ts',
targets: ['./dist/*']
})
]
-}
+})
/* eslint-disable n/no-unpublished-import */
import typescript from '@rollup/plugin-typescript'
import del from 'rollup-plugin-delete'
+import { defineConfig } from 'rollup'
-export default {
+export default defineConfig({
input: ['./src/main.ts', './src/worker.ts'],
strictDeprecations: true,
output: [
targets: ['./dist/*']
})
]
-}
+})
/* eslint-disable n/no-unpublished-import */
import typescript from '@rollup/plugin-typescript'
import del from 'rollup-plugin-delete'
+import { defineConfig } from 'rollup'
-export default {
+export default defineConfig({
input: [
'./src/main.ts',
'./src/websocket-server-worker.ts',
targets: ['./dist/*']
})
]
-}
+})
import analyze from 'rollup-plugin-analyzer'
import command from 'rollup-plugin-command'
import del from 'rollup-plugin-delete'
+import { defineConfig } from 'rollup'
const availableParallelism = () => {
let availableParallelism = 1
const maxWorkers = Math.floor(availableParallelism() / 2)
-export default [
+export default defineConfig([
{
input: './src/index.ts',
strictDeprecations: true,
isAnalyzeBuild && analyze()
]
}
-]
+])
{
"extends": "./tsconfig.json",
"compilerOptions": {
- "sourceMap": true,
+ "sourceMap": true
},
"exclude": ["node_modules", "lib", "examples/typescript/**/*.ts"]
}