mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +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": {
|
||||
".": "./src/index.js",
|
||||
"./*": "./src/*.js",
|
||||
"./app/*": "./app/*.js",
|
||||
"./addon-main.js": "./addon-main.cjs"
|
||||
},
|
||||
"files": [
|
||||
|
Reference in New Issue
Block a user