Skip to content

Conversation

targos
Copy link
Member

@targos targos commented Jun 16, 2021

This allows to require('@adonisjs/core/standalone') instead of having
to deeply grab it from the build directory.
Provide a star export fallback for backwards-compatibility.

This allows to `require('@adonisjs/core/standalone')` instead of having
to deeply grab it from the build directory.
Provide a star export fallback for backwards-compatibility.
"exports": {
".": "./build/providers/AppProvider.js",
"./standalone": "./build/standalone.js",
"./Ignitor": "./build/src/Ignitor/index.js",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

happy to add more exports like this if there are other files meant to be imported by the end user.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it work with CJS too?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it does.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

> require('@adonisjs/core/Ignitor') == require('@adonisjs/core/build/src/Ignitor/index.js')
true

@thetutlage thetutlage merged commit e6453bf into adonisjs:develop Jun 16, 2021
@thetutlage
Copy link
Member

Danke

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants