Skip to content

Commit a175e03

Browse files
committed
fix export
1 parent 0e9df95 commit a175e03

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
name: Install dependencies
3434
# fail and not publish if any of the unit tests are failing
3535
- name: Build examples
36-
run: cd../.. && pnpm build --filter esbuild-plugin-react18-css-example
36+
run: cd ../.. && pnpm build --filter esbuild-plugin-react18-css-example
3737
- name: Test
3838
run: pnpm test
3939
- name: Create release and publish to NPM

lib/esbuild-plugin-react18-css/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
"autoprefixer",
5858
"css-module",
5959
"scss-module",
60+
"sass-module",
6061
"postcss",
6162
"esbuild",
6263
"react18",

lib/esbuild-plugin-react18-css/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { compile } from "sass";
88

99
const uuid = () => (Date.now() * Math.random()).toString(36).slice(0, 8);
1010

11-
export interface CSSPluginOptions {
11+
interface CSSPluginOptions {
1212
/** by default name is generated without hash so that it is easier and reliable for library users to override some CSS */
1313
generateScopedName?: string | ((className: string, filename: string, css: string) => string);
1414
/** set skipAutoPrefixer to true to disable autoprefixer */
@@ -139,4 +139,4 @@ const cssPlugin: (options?: CSSPluginOptions) => Plugin = (options = {}) => ({
139139
},
140140
});
141141

142-
export default cssPlugin;
142+
export = cssPlugin;

0 commit comments

Comments
 (0)