File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ Basic usage
3333
3434#### Usage with commonJS
3535
36- ``` bash
36+ ``` javascript
3737const postcss = require (' postcss' );
3838const postcssRTLCSS = require (' postcss-rtlcss' );
3939
@@ -45,9 +45,14 @@ const result = postcss([
4545const rtlCSS = result .css ;
4646```
4747
48+ ##### commonJS with the legacy version (1.x.x)
49+ ``` javascript
50+ const { postcssRTLCSS } = require (' postcss-rtlcss' );
51+ ```
52+
4853#### Usage with ES6 modules
4954
50- ` ` ` bash
55+ ``` javascript
5156import postcss from ' postcss' ;
5257import postcssRTLCSS from ' postcss-rtlcss' ;
5358
@@ -59,9 +64,15 @@ const result = postcss([
5964const rtlCSS = result .css ;
6065```
6166
67+ ##### ES6 modules with the legacy version (1.x.x)
68+
69+ ``` javascript
70+ import { postcssRTLCSS } from ' postcss-rtlcss' ;
71+ ```
72+
6273#### Usage in Webpack with postcss-loader
6374
64- ` ` ` bash
75+ ``` javascript
6576rules: [
6677 {
6778 test: / \. css$ / ,
You can’t perform that action at this time.
0 commit comments