mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
0c2a94c265
Just like activestorage.js
28 lines
521 B
JavaScript
28 lines
521 B
JavaScript
import resolve from "@rollup/plugin-node-resolve"
|
|
import commonjs from "@rollup/plugin-commonjs"
|
|
|
|
export default [
|
|
{
|
|
input: "app/javascript/actiontext/index.js",
|
|
output: {
|
|
file: "app/assets/javascripts/actiontext.js",
|
|
format: "es"
|
|
},
|
|
plugins: [
|
|
resolve(),
|
|
commonjs()
|
|
]
|
|
},
|
|
|
|
{
|
|
input: "app/javascript/trix/mirror.js",
|
|
output: {
|
|
file: "app/assets/javascripts/trix.js",
|
|
format: "es"
|
|
},
|
|
context: "this",
|
|
plugins: [
|
|
resolve()
|
|
]
|
|
}
|
|
]
|