chore: fix mixin and external mod (#1817)

* chore: fix mixin and external mod

* chore: add back to root

* chore: add systemjs build of stardust

* chore: trigger diff

* fix: remove typo import
This commit is contained in:
Tobias Åström
2025-10-02 18:55:27 +02:00
committed by GitHub
parent 3744c2ec69
commit d227626473
7 changed files with 56 additions and 30 deletions

View File

@@ -7,7 +7,6 @@ const json = require('@rollup/plugin-json');
const { nodeResolve } = require('@rollup/plugin-node-resolve');
const commonjs = require('@rollup/plugin-commonjs');
const terser = require('@rollup/plugin-terser');
const jsxPlugin = require('@babel/plugin-transform-react-jsx');
const babelPreset = require('@babel/preset-env');
const { visualizer } = require('rollup-plugin-visualizer');
const browsersList = require('@qlik/browserslist-config');
@@ -153,7 +152,7 @@ const config = ({
},
},
],
[babelPresetReact],
[babelPresetReact, { runtime: 'automatic' }],
];
if (typescript) {
@@ -195,6 +194,7 @@ const config = ({
postcss({
exclude: /\.module\.css$/,
}),
// Handle all CSS with conditional modules processing
postcss({
include: /\.module\.css$/,
modules: true,
@@ -204,7 +204,6 @@ const config = ({
ignoreTryCatch: false, // Avoids problems with require() inside try catch (https://github.com/rollup/plugins/issues/1004)
}),
json(),
// Handle all CSS with conditional modules processing
babel({
babelHelpers: 'bundled',
@@ -212,7 +211,6 @@ const config = ({
inputSourceMap: sourcemap,
extensions,
presets: babelPresets,
plugins: [[jsxPlugin]],
}),
...[
mode === 'production'

View File

@@ -6,6 +6,7 @@ const systemjsBehaviours = {
'picasso-plugin-q',
'react',
'react-dom',
'@qlik-trial/sprout-css-modules',
/^(?!@qlik-trial\/qmfe-data-client-parcels)(@qlik-trial\/qmfe-)/,
];
const { external } = cfg.systemjs || {};

View File

@@ -23,7 +23,6 @@
"dependencies": {
"@babel/cli": "7.28.3",
"@babel/core": "7.28.4",
"@babel/plugin-transform-react-jsx": "7.27.1",
"@babel/preset-env": "7.28.3",
"@babel/preset-react": "7.27.1",
"@babel/preset-typescript": "7.27.1",