Skip to content

Commit

Permalink
Refactor main browser endpoint as ES rather than CommonJS
Browse files Browse the repository at this point in the history
This solution was suggested by @jedwards1211 in #208
  • Loading branch information
eemeli committed Jan 30, 2021
1 parent f58f351 commit d857282
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ npm test # just to be sure

## Repository Directory & File Structure

- **`browser/`** - Browser-optimised build of the library, which should work in IE 11 & later. Used automatically by e.g. Webpack & Rollup via the `"browser"` value in `package.json`. A corresponding minimal set of the library's required polyfills is available at `playground/src/polyfill.js`
- **`browser/`** - Browser-optimised ES build of the library, which should work in IE 11 & later. Used automatically by e.g. Webpack & Rollup via the `"browser"` value in `package.json`. A corresponding minimal set of the library's required polyfills is available at `playground/src/polyfill.js`
- **`dist/`** - Node-optimised build of the library, which should work in Node.js 6.0.0 and later without polyfills.
- **`docs/`** - Sources for the library's [documentation site](https://eemeli.org/yaml).
- **`docs-slate/`** - Compiler for the library's [documentation site](https://eemeli.org/yaml). Maintained as a git submodule to allow merges from its upstream source, [Slate](https://github.com/slatedocs/slate). See its [`README`](./docs-slate/README.md) for installation instructions. Note that the build target is the `gh-pages` branch of _this_ repo.
Expand Down
3 changes: 2 additions & 1 deletion browser/index.js
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
module.exports = require('./dist')
export * as default from './dist'
export * from './dist'
File renamed without changes.

0 comments on commit d857282

Please sign in to comment.