Skip to content

Commit

Permalink
fix: esm/cjs conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
cossssmin committed Dec 30, 2023
1 parent 6740d0d commit 0473f24
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
14 changes: 4 additions & 10 deletions src/index.js
@@ -1,8 +1,8 @@
import plugin from 'tailwindcss/plugin'
import flattenColorPalette from 'tailwindcss/lib/util/flattenColorPalette'
import {msoBorderColors} from './msoColors.js'
const plugin = require('tailwindcss/plugin')
const flattenColorPalette = require('tailwindcss/lib/util/flattenColorPalette').default
const msoBorderColors = require('./msoColors.js')

const tailwindCssMsoPlugin = plugin.withOptions(
module.exports = plugin.withOptions(
function (options = {}) {
const respectImportant = Boolean(options.respectImportant)

Expand Down Expand Up @@ -662,7 +662,6 @@ const tailwindCssMsoPlugin = plugin.withOptions(
values: {
...msoBorderColors,
...flattenColorPalette(theme('colors')),

},
respectImportant,
}
Expand Down Expand Up @@ -722,7 +721,6 @@ const tailwindCssMsoPlugin = plugin.withOptions(
auto: 'auto',
background: 'background',
foreground: 'foreground',

},
respectImportant,
}
Expand All @@ -739,7 +737,6 @@ const tailwindCssMsoPlugin = plugin.withOptions(
values: {
no: 'no',
yes: 'yes',

},
respectImportant,
}
Expand All @@ -756,13 +753,10 @@ const tailwindCssMsoPlugin = plugin.withOptions(
values: {
'3d': '3d',
box: 'box',

},
respectImportant,
}
)
}
}
)

export default tailwindCssMsoPlugin
4 changes: 1 addition & 3 deletions src/msoColors.js
@@ -1,5 +1,5 @@
/* eslint-disable */
export const msoBorderColors = {
module.exports = {
'auto': 'auto',
'windowtext': 'windowtext',
'apples': 'apples',
Expand Down Expand Up @@ -208,5 +208,3 @@ export const msoBorderColors = {
'zig-zag': 'zig-zag',
'zig-zag-stitch': 'zig-zag-stitch'
}

msoBorderColors

0 comments on commit 0473f24

Please sign in to comment.