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
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
import "trix"
|
|
@ -1,8 +1,7 @@
|
|||
import resolve from "@rollup/plugin-node-resolve"
|
||||
import commonjs from "@rollup/plugin-commonjs"
|
||||
|
||||
export default [
|
||||
{
|
||||
export default {
|
||||
input: "app/javascript/actiontext/index.js",
|
||||
output: {
|
||||
file: "app/assets/javascripts/actiontext.js",
|
||||
|
@ -12,17 +11,4 @@ export default [
|
|||
resolve(),
|
||||
commonjs()
|
||||
]
|
||||
},
|
||||
|
||||
{
|
||||
input: "app/javascript/trix/mirror.js",
|
||||
output: {
|
||||
file: "app/assets/javascripts/trix.js",
|
||||
format: "es"
|
||||
},
|
||||
context: "this",
|
||||
plugins: [
|
||||
resolve()
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue