1
0
Fork 0
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:
David Heinemeier Hansson 2021-08-13 11:10:05 +02:00
parent 02d989e72c
commit a2a28e6c90
3 changed files with 5283 additions and 41 deletions

File diff suppressed because one or more lines are too long

View file

@ -1 +0,0 @@
import "trix"

View file

@ -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()
]
}