Skip to content

Commit f24fdaf

Browse files
Fix exports
1 parent 4f21c19 commit f24fdaf

File tree

7 files changed

+7
-31
lines changed

7 files changed

+7
-31
lines changed

dist/cjs/index.d.ts

+1-9
Original file line numberDiff line numberDiff line change
@@ -1,9 +1 @@
1-
type Options = Record<string, any>;
2-
declare const _default: {
3-
(options: Options): {
4-
handler: import("tailwindcss/types/config").PluginCreator;
5-
config?: Partial<import("tailwindcss").Config> | undefined;
6-
};
7-
__isOptionsFunction: true;
8-
};
9-
export default _default;
1+
export {};

dist/cjs/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
44
};
55
Object.defineProperty(exports, "__esModule", { value: true });
66
const plugin_1 = __importDefault(require("tailwindcss/plugin"));
7-
exports.default = plugin_1.default.withOptions(function (options = {}) {
7+
module.exports = plugin_1.default.withOptions(function (options = {}) {
88
return function ({ matchUtilities, theme, config }) {
99
const context = {
1010
theme,

dist/esm/index.d.ts

+1-9
Original file line numberDiff line numberDiff line change
@@ -1,9 +1 @@
1-
type Options = Record<string, any>;
2-
declare const _default: {
3-
(options: Options): {
4-
handler: import("tailwindcss/types/config").PluginCreator;
5-
config?: Partial<import("tailwindcss").Config> | undefined;
6-
};
7-
__isOptionsFunction: true;
8-
};
9-
export default _default;
1+
export {};

dist/esm/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import plugin from 'tailwindcss/plugin';
2-
export default plugin.withOptions(function (options = {}) {
2+
module.exports = plugin.withOptions(function (options = {}) {
33
return function ({ matchUtilities, theme, config }) {
44
const context = {
55
theme,

dist/types/index.d.ts

+1-9
Original file line numberDiff line numberDiff line change
@@ -1,9 +1 @@
1-
type Options = Record<string, any>;
2-
declare const _default: {
3-
(options: Options): {
4-
handler: import("tailwindcss/types/config").PluginCreator;
5-
config?: Partial<import("tailwindcss").Config> | undefined;
6-
};
7-
__isOptionsFunction: true;
8-
};
9-
export default _default;
1+
export {};

index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import plugin from 'tailwindcss/plugin';
22

33
type Options = Record<string, any>;
44

5-
export default plugin.withOptions(function (options: Options = {}) {
5+
module.exports = plugin.withOptions(function (options: Options = {}) {
66
return function ({ matchUtilities, theme, config }) {
77
const context = {
88
theme,

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
/* Interop Constraints */
7777
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
7878
// "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
79-
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
79+
"allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
8080
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
8181
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
8282
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,

0 commit comments

Comments
 (0)