Skip to content

Conversation

@elchininet
Copy link
Owner

This pull request migrates de package bundler from Webpack to Rollup and creates an ESM version of it. The new structure of the package is this one:

└── postcss-rtlcss
    ├── esm
    |   └── index.js // esm main module
    |   └── options.js // esm options module
    ├── index.js // cjs main module
    ├── index.d.ts // type definitions main module
    ├── options.js // cjs options module
    └── options.d.ts // type definitions options module

It uses conditional-exports to serve the esm or the cjs version depending on the way of including the package. imports postcssRTLCSS from 'postcss-rtlcss' will load the esm version and const postcssRTLCSS = require('postcss-rtlcss') will load the commonjs one.

@elchininet elchininet added documentation Improvements or additions to documentation enhancement New feature or request dependencies Pull requests that update a dependency file Configuration labels Mar 26, 2022
@elchininet elchininet self-assigned this Mar 26, 2022
@elchininet elchininet force-pushed the create_esm_version_of_the_package branch from 4e2399b to 757182e Compare March 26, 2022 20:47
@elchininet elchininet merged commit 6f39d93 into master Mar 26, 2022
@elchininet elchininet deleted the create_esm_version_of_the_package branch March 26, 2022 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Configuration dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants