mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-27 14:59:27 +08:00
Shared rollup config (#5403)
* add one shared rollup config * rename to baseConfig
This commit is contained in:
parent
940f9d5266
commit
44e4eca47a
474
package-lock.json
generated
474
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -3,6 +3,7 @@
|
||||
"packageManager": "npm@10.8.1",
|
||||
"workspaces": [
|
||||
"demos",
|
||||
"shared/*",
|
||||
"packages/*"
|
||||
],
|
||||
"browserslist": [
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
@ -1,61 +1,5 @@
|
||||
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'
|
||||
import { baseConfig } from '@tiptap-shared/rollup-config'
|
||||
|
||||
import pkg from './package.json' assert { type: 'json' }
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
export default baseConfig({ input: 'src/index.ts', pkg })
|
||||
|
62
shared/rollup-config/index.js
Normal file
62
shared/rollup-config/index.js
Normal 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,
|
||||
},
|
||||
}),
|
||||
],
|
||||
})
|
6
shared/rollup-config/package.json
Normal file
6
shared/rollup-config/package.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": "@tiptap-shared/rollup-config",
|
||||
"private": true,
|
||||
"main": "index.js",
|
||||
"type": "module"
|
||||
}
|
Loading…
Reference in New Issue
Block a user