Sha256: b650a6a71c7829beea161ace894305fe349fc94d129514940f24d3286eb580ff

Contents?: true

Size: 841 Bytes

Versions: 13

Compression:

Stored size: 841 Bytes

Contents

import resolve from "@rollup/plugin-node-resolve"
import commonjs from "@rollup/plugin-commonjs"
import { terser } from "rollup-plugin-terser"
import typescript from "@rollup/plugin-typescript"

const terserOptions = {
 mangle: false,
 compress: false,
 format: {
   beautify: true,
   indent_level: 2
 }
}

export default [
  {
    input: "app/javascript/tessa/index.ts",
    output: {
      file: "app/assets/javascripts/tessa.js",
      format: "umd",
      name: "Tessa"
    },
    plugins: [
      resolve(),
      typescript(),
      commonjs(),
      terser(terserOptions)
    ]
  },

  {
    input: "app/javascript/tessa/index.ts",
    output: {
      file: "app/assets/javascripts/tessa.esm.js",
      format: "es"
    },
    plugins: [
      resolve(),
      typescript(),
      commonjs(),
      terser(terserOptions)
    ]
  }
]

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
tessa-6.1.3 rollup.config.js
tessa-6.1.2 rollup.config.js
tessa-6.1.1 rollup.config.js
tessa-6.1.0 rollup.config.js
tessa-6.0.3 rollup.config.js
tessa-6.0.2 rollup.config.js
tessa-6.0.1 rollup.config.js
tessa-6.0.0 rollup.config.js
tessa-6.0.0.rc5 rollup.config.js
tessa-6.0.0.rc4 rollup.config.js
tessa-6.0.0.rc3 rollup.config.js
tessa-6.0.0.rc2 rollup.config.js
tessa-6.0.0.rc1 rollup.config.js