10000 Convert plugin.js to ESM because package.json has type set to module · activeadmin/activeadmin@8b10b04 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8b10b04

Browse files
committed
Convert plugin.js to ESM because package.json has type set to module
1 parent 006abfc commit 8b10b04

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

plugin.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
const plugin = require('tailwindcss/plugin')
2-
const defaultTheme = require('tailwindcss/defaultTheme');
3-
const colors = require('tailwindcss/colors');
1+
import plugin from 'tailwindcss/plugin';
2+
import defaultTheme from 'tailwindcss/defaultTheme';
3+
import colors from 'tailwindcss/colors';
44
const { spacing, borderWidth, borderRadius } = defaultTheme;
55

66
// https://github.com/tailwindlabs/tailwindcss/discussions/9336
@@ -28,7 +28,7 @@ const svgToTinyDataUri = (() => {
2828
return svgToTinyDataUri;
2929
})();
3030

31-
module.exports = plugin(
31+
export default plugin(
3232
function({ addBase, addComponents, theme }) {
3333
addBase({
3434
[[

0 commit comments

Comments
 (0)
0