mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:37:02 +08:00
DEV: Correct truth-helper exports (#31528)
In modern embroider, `app-js` files need to be exported by the module. We need to keep the separate `app/` directory because this v2 addon doesn't have a build step, and therefore the relative imports in the `src/helpers` files would break if loaded as-is into the app bundle.
This commit is contained in:
@ -11,6 +11,7 @@
|
|||||||
"exports": {
|
"exports": {
|
||||||
".": "./src/index.js",
|
".": "./src/index.js",
|
||||||
"./*": "./src/*.js",
|
"./*": "./src/*.js",
|
||||||
|
"./app/*": "./app/*.js",
|
||||||
"./addon-main.js": "./addon-main.cjs"
|
"./addon-main.js": "./addon-main.cjs"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
|
Reference in New Issue
Block a user