Shared rollup config (#5403)

* add one shared rollup config

* rename to baseConfig
This commit is contained in:
bdbch 2024-07-27 12:46:39 +02:00 committed by GitHub
parent 940f9d5266
commit 44e4eca47a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
57 changed files with 415 additions and 3308 deletions

474
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -3,6 +3,7 @@
"packageManager": "npm@10.8.1", "packageManager": "npm@10.8.1",
"workspaces": [ "workspaces": [
"demos", "demos",
"shared/*",
"packages/*" "packages/*"
], ],
"browserslist": [ "browserslist": [

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,61 +1,5 @@
import babel from '@rollup/plugin-babel' import { baseConfig } from '@tiptap-shared/rollup-config'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json' assert { type: 'json' } import pkg from './package.json' assert { type: 'json' }
export default { export default baseConfig({ input: 'src/index.ts', pkg })
external: [/@tiptap\/pm\/.*/],
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -0,0 +1,62 @@
import babel from '@rollup/plugin-babel'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import autoExternal from 'rollup-plugin-auto-external'
import sourcemaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
export const baseConfig = ({
input = 'src/index.ts',
pkg,
}) => ({
external: [/@tiptap\/pm\/.*/],
input,
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
interop: 'compat',
sourcemap: true,
exports: 'named',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
exports: 'named',
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
})

View File

@ -0,0 +1,6 @@
{
"name": "@tiptap-shared/rollup-config",
"private": true,
"main": "index.js",
"type": "module"
}