2020-05-08 00:37:47 +08:00
|
|
|
{
|
|
|
|
"name": "pretty-text",
|
|
|
|
"version": "1.0.0",
|
|
|
|
"description": "Discourse's text rendering pipeline",
|
|
|
|
"author": "Discourse",
|
2020-08-14 18:00:35 +08:00
|
|
|
"license": "GPL-2.0-only",
|
2020-05-08 00:37:47 +08:00
|
|
|
"keywords": [
|
|
|
|
"ember-addon"
|
|
|
|
],
|
|
|
|
"scripts": {
|
|
|
|
"build": "ember build",
|
|
|
|
"lint:hbs": "ember-template-lint .",
|
|
|
|
"lint:js": "eslint .",
|
|
|
|
"start": "ember serve"
|
|
|
|
},
|
|
|
|
"dependencies": {
|
2023-06-30 19:01:45 +08:00
|
|
|
"discourse-common": "1.0.0",
|
2023-04-19 18:58:29 +08:00
|
|
|
"ember-auto-import": "^2.6.3",
|
2023-08-21 17:27:24 +08:00
|
|
|
"ember-cli-babel": "^8.0.0",
|
DEV: move xss dependency into core (#23094)
This resolves the issue in #23064.
This issue arises because we need to produce the trees for the
auxilary bundles in `ember-cli-build.js` to pass these trees as
argument to `app.toTree()`. In order to produce these trees, the
code internally need to set up babel, which deep-clones the addons'
babel configs.
When using `@embroider/macros`, the addon's babel config includes a
`MacrosConfig` object which is not supposed to be touched until the
configs are "finalized". In a classic build, the finalization step
happens when `app.toTree()` is called. In Embroider, this happens
somewhere deeper inside `CompatApp`.
We need to produce these auxilary bundle trees before we call
`app.toTree()` or before constructing `CompatApp` because they
need to be passed as arguments to these functions. So this poses a
tricky chicken-and-egg timing issue. It was difficult to find a
workaround for this that works for both the classic and Embroider
build pipeline.
Of all the internal addons that uses the auxilary bundle pattern,
this only affets `pretty-text` as it is (for now, at least) the
only addon that uses `@embroider/macros`.
Taking a step back, the only reason (for now, at least) it was
introduced was for the loader shim for the `xss` package. This
package is actually used inside the lazily loaded markdown-it
bundle. However, we didn't have a better way to include the dep
into the lazy bundle directly, so it ends up going into the main
addon tree, and, inturns, the discourse core bundle.
In core's main loader shim manifest, we already have an entry for
`xss`. This was perhaps a mistake at the time, but it doesn't make
a difference – as mentioned above, `xss` needs to be included into
the main bundle anyway.
So, for now, the simpliest solution is to avoid `@embroider/macros`
in these internal addons for the time being. Ideally we would soon
absorb these back into core as lazily loaded (`import()`-ed) code
managed by Webpack when we fully switch over to Embroider.
2023-08-15 23:13:26 +08:00
|
|
|
"ember-cli-htmlbars": "^6.3.0"
|
2020-05-08 00:37:47 +08:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2023-09-05 06:27:27 +08:00
|
|
|
"@babel/core": "^7.22.15",
|
2022-06-22 06:12:33 +08:00
|
|
|
"@ember/optional-features": "^2.0.0",
|
2023-05-17 16:42:20 +08:00
|
|
|
"@ember/string": "^3.1.1",
|
2023-05-19 15:14:26 +08:00
|
|
|
"@embroider/test-setup": "^3.0.1",
|
2022-06-23 19:35:42 +08:00
|
|
|
"@glimmer/component": "^1.1.2",
|
2020-05-08 00:37:47 +08:00
|
|
|
"broccoli-asset-rev": "^3.0.0",
|
2023-06-26 23:15:59 +08:00
|
|
|
"ember-cli": "~5.0.0",
|
2022-06-22 06:12:15 +08:00
|
|
|
"ember-cli-inject-live-reload": "^2.1.0",
|
2020-05-08 00:37:47 +08:00
|
|
|
"ember-cli-sri": "^2.1.1",
|
2022-06-28 00:13:46 +08:00
|
|
|
"ember-cli-terser": "^4.0.2",
|
2020-05-08 00:37:47 +08:00
|
|
|
"ember-disable-prototype-extensions": "^1.1.3",
|
|
|
|
"ember-load-initializers": "^2.1.1",
|
2023-06-26 22:14:27 +08:00
|
|
|
"ember-resolver": "^10.1.1",
|
2023-05-05 07:02:51 +08:00
|
|
|
"ember-source": "~3.28.12",
|
2022-06-22 06:12:43 +08:00
|
|
|
"ember-source-channel-url": "^3.0.0",
|
2023-05-03 16:25:13 +08:00
|
|
|
"loader.js": "^4.7.0",
|
2023-07-11 06:11:49 +08:00
|
|
|
"markdown-it": "^13.0.1",
|
2023-07-18 17:35:46 +08:00
|
|
|
"webpack": "^5.88.2"
|
2020-05-08 00:37:47 +08:00
|
|
|
},
|
|
|
|
"engines": {
|
2022-06-29 02:52:31 +08:00
|
|
|
"node": "16.* || >= 18",
|
2021-08-05 04:04:58 +08:00
|
|
|
"npm": "please-use-yarn",
|
|
|
|
"yarn": ">= 1.21.1"
|
2020-05-08 00:37:47 +08:00
|
|
|
},
|
|
|
|
"ember": {
|
2022-06-24 04:19:54 +08:00
|
|
|
"edition": "default"
|
2020-05-08 00:37:47 +08:00
|
|
|
}
|
|
|
|
}
|