mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Switch to ESM compatible build of trix
The mirror setup isn't doing what we need to get a ESM-compatible version of Trix. So grab a build from Snowpack that's compatible for now.
This commit is contained in:
parent
02d989e72c
commit
a2a28e6c90
3 changed files with 5283 additions and 41 deletions
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
import "trix"
|
|
@ -1,28 +1,14 @@
|
|||
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()
|
||||
]
|
||||
export default {
|
||||
input: "app/javascript/actiontext/index.js",
|
||||
output: {
|
||||
file: "app/assets/javascripts/actiontext.js",
|
||||
format: "es"
|
||||
},
|
||||
|
||||
{
|
||||
input: "app/javascript/trix/mirror.js",
|
||||
output: {
|
||||
file: "app/assets/javascripts/trix.js",
|
||||
format: "es"
|
||||
},
|
||||
context: "this",
|
||||
plugins: [
|
||||
resolve()
|
||||
]
|
||||
}
|
||||
]
|
||||
plugins: [
|
||||
resolve(),
|
||||
commonjs()
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue