conversion to ESM, and deletion of CommonJS by trusktr · Pull Request #2106 · docsifyjs/docsify

@trusktr changed the title initial conversion to ESM initial conversion to ESM, and deletion of CommonJS

Jun 25, 2023

@trusktr trusktr linked an issue

Jun 25, 2023

that may be closed by this pull request

…in Rollup config because some dependencies are still CommonJS

BREAKING: The new project layout might break in some tooling setups.

We've added an exports field to `package.json` to specify where
statements like `import ... from 'docsify'` will import from, and left
the `main` and `unpkg` fields as-is for backwards compatibility with the
global <script> import method. Most people who use a non-module
`<script>` tag to import Docsify will not notice a difference. Anyone
else who is importing Docsify into a specilized build setup using
`import` statements has a chance of being broken, so we've marked this
as BREAKING.
…ll request and not only for those to main or develop

@trusktr

Base automatically changed from delete-ssr to develop

July 2, 2023 18:34

@trusktr

This was referenced

Jul 4, 2023

@trusktr

trusktr