Skip to content

Commit e32b71a

Browse files
committed
run litCssPlugin after esbuild for ESmodule setup, was not needed for Bundling. Also use JSX syntax.
1 parent 05081a6 commit e32b71a

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@
9494
"postcss-custom-properties-fallback": "1.0.1",
9595
"postcss-jsx": "0.36.4",
9696
"postcss-load-config": "3.1.0",
97-
"postcss-syntax": "0.36.2",
9897
"postcss-values-parser": "6.0.0",
9998
"prettier": "2.5.1",
10099
"rimraf": "3.0.2",

packages/rollup-package.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ const createEsModulesConfig = (entryPoints = []) => {
2727
external: [/^lit/, /^@umbraco-ui/],
2828
plugins: [
2929
importCss({ from: undefined }),
30-
processLitCSSPlugin(),
3130
esbuild(),
31+
processLitCSSPlugin(),
3232
],
3333
};
3434
}),

scripts/rollup.processLitCSSPlugin.mjs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import postcss from 'postcss';
2-
import syntax from 'postcss-syntax';
2+
import syntax from 'postcss-jsx';
33
import postcssCustomPropertiesFallback from 'postcss-custom-properties-fallback';
44
import { createFilter } from '@rollup/pluginutils';
55
import postcssConfig from 'postcss-load-config';
@@ -10,12 +10,15 @@ import customProperties from '../packages/uui-css/custom-properties.module'; //
1010
// @ts-ignore-end
1111

1212
const options = {
13-
include: ['**/uui-*.ts', '**/*Mixin.ts', '**/*.styles.ts'],
13+
include: ['**/index.ts', '**/uui-*.ts', '**/*Mixin.ts', '**/*.styles.ts'],
1414
exclude: [
1515
'**/uui-base/lib/events/**',
16+
'**/uui-base/lib/registration/**',
17+
'**/uui-base/lib/types/**',
18+
'**/uui-base/lib/utils/**',
1619
'**/*.story.ts',
1720
'**/*.d.ts',
18-
'../uui-css/**/*.ts',
21+
'**/uui-css/**/*.ts',
1922
],
2023
};
2124

scripts/vite.processLitCSSPlugin.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,15 @@ const customProperties = require('../packages/uui-css/custom-properties.cjs'); /
1515
// @ts-ignore-end
1616

1717
const options = {
18-
include: ['**/uui-*.ts', '**/*Mixin.ts', '**/*.styles.ts'],
18+
include: ['**/index.ts', '**/uui-*.ts', '**/*Mixin.ts', '**/*.styles.ts'],
1919
exclude: [
2020
'**/uui-base/lib/events/**',
21+
'**/uui-base/lib/registration/**',
22+
'**/uui-base/lib/types/**',
23+
'**/uui-base/lib/utils/**',
2124
'**/*.story.ts',
2225
'**/*.d.ts',
23-
'../uui-css/**/*.ts',
26+
'**/uui-css/**/*.ts',
2427
],
2528
};
2629

0 commit comments

Comments
 (0)