Sha256: 0c278a66e444a0aab2f3d63134ab4f213fe851f41a5a78e14a4f25fb1bb2d346

Contents?: true

Size: 946 Bytes

Versions: 5

Compression:

Stored size: 946 Bytes

Contents

import resolve from "@rollup/plugin-node-resolve"
import typescript from "@rollup/plugin-typescript"

export default [
  {
    external: ['turbolinks'],
    input: "src/index.ts",
    output: [
      {
        name: "Shoelace Rails",
        file: "dist/shoelace-rails.es5-umd.js",
        format: "umd",
        sourcemap: true,
      }
    ],
    plugins: [
      resolve(),
      typescript({ target: "es5", downlevelIteration: true })
    ],
    watch: {
      include: "src/**"
    }
  },

  {
    external: ['turbolinks'],
    input: "src/index.ts",
    output: [
      {
        name: "Shoelace Rails",
        file: "dist/shoelace-rails.es2017-umd.js",
        format: "umd",
        sourcemap: true,
      },
      {
        file: "dist/shoelace-rails.es2017-esm.js",
        format: "es",
        sourcemap: true,
      }
    ],
    plugins: [
      resolve(),
      typescript()
    ],
    watch: {
      include: "src/**"
    }
  }
]

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
shoelace-rails-0.4.1 rollup.config.js
shoelace-rails-0.4.0 rollup.config.js
shoelace-rails-0.3.0 rollup.config.js
shoelace-rails-0.2.0 rollup.config.js
shoelace-rails-0.1.0 rollup.config.js