2020-05-08 00:37:47 +08:00
|
|
|
{
|
|
|
|
"name": "pretty-text",
|
|
|
|
"version": "1.0.0",
|
2023-11-07 00:59:49 +08:00
|
|
|
"description": "Discourse's text rendering utilities",
|
2020-05-08 00:37:47 +08:00
|
|
|
"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": {
|
2024-04-30 07:38:48 +08:00
|
|
|
"@babel/core": "^7.24.5",
|
2023-06-30 19:01:45 +08:00
|
|
|
"discourse-common": "1.0.0",
|
2023-12-27 08:25:43 +08:00
|
|
|
"ember-auto-import": "^2.7.2",
|
2023-10-11 06:18:58 +08:00
|
|
|
"ember-cli-babel": "^8.2.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": {
|
2024-02-22 06:17:02 +08:00
|
|
|
"@ember/optional-features": "^2.1.0",
|
2024-04-18 22:48:10 +08:00
|
|
|
"@embroider/test-setup": "^4.0.0",
|
2022-06-23 19:35:42 +08:00
|
|
|
"@glimmer/component": "^1.1.2",
|
2023-11-23 06:38:00 +08:00
|
|
|
"@types/jquery": "^3.5.29",
|
2024-01-17 06:43:19 +08:00
|
|
|
"@types/qunit": "^2.19.10",
|
|
|
|
"@types/rsvp": "^4.0.9",
|
2020-05-08 00:37:47 +08:00
|
|
|
"broccoli-asset-rev": "^3.0.0",
|
2024-04-29 06:22:49 +08:00
|
|
|
"ember-cli": "~5.8.1",
|
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",
|
2024-02-26 22:15:51 +08:00
|
|
|
"ember-resolver": "^11.0.1",
|
2024-01-11 01:30:50 +08:00
|
|
|
"ember-source": "~5.5.0",
|
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",
|
2024-03-21 07:03:20 +08:00
|
|
|
"webpack": "^5.91.0"
|
2020-05-08 00:37:47 +08:00
|
|
|
},
|
|
|
|
"engines": {
|
2024-02-27 17:48:30 +08:00
|
|
|
"node": ">= 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
|
|
|
}
|
|
|
|
}
|