Skip to content

Commit

Permalink
downgrade saucelabs to 7.2.2 because they broke the latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
Havunen committed Sep 16, 2023
1 parent 214bc21 commit ead33f4
Show file tree
Hide file tree
Showing 6 changed files with 972 additions and 656 deletions.
50 changes: 29 additions & 21 deletions fixtures/browser/karma.babel.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,32 +76,40 @@ module.exports = function (config) {
runtimeChunk: false,
minimize: false
},
target: ['web', 'es5'],
target: ['web'],
module: {
rules: [
{
test: /\.(js|jsx|tsx|ts)$/,
loader: path.join(__dirname, 'node_modules/babel-loader'),
options: {
babelrc: false,
presets: [
'@babel/typescript',
[
'@babel/preset-env',
{
loose: true,
targets: {
ie: '11',
safari: '8'
test: /\.(ts|tsx|js|jsx)$/,
exclude: /(node_modules)/,
use: {
// `.swcrc` can be used to configure swc
loader: 'swc-loader',
options: {
"jsc": {
"parser": {
"syntax": "typescript",
"tsx": true,
},
"experimental": {
"plugins": [
["swc-plugin-inferno", {}]
],
},
"target": "es2022",
"loose": true,
"transform": {
"optimizer": {
"globals": {
"vars": {
"__DEBUG__": "true"
}
}
}
}
]
],
plugins: [
['babel-plugin-inferno', { imports: true }],
['@babel/plugin-proposal-class-properties', { loose: true }]
]
}
}
}
},
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion fixtures/browser/karma.sauce.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ module.exports = function (config) {
runtimeChunk: false,
minimize: true
},
target: ['web', 'es5'],
target: ['web'],
module: {
rules: [
{
Expand Down
2 changes: 1 addition & 1 deletion fixtures/browser/karma.swc.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ module.exports = function (config) {
runtimeChunk: false,
minimize: false
},
target: ['web', 'es5'],
target: ['web'],
module: {
rules: [
{
Expand Down
4 changes: 2 additions & 2 deletions fixtures/browser/karma.ts.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ module.exports = function (config) {
runtimeChunk: false,
minimize: false
},
target: ['web', 'es5'],
target: ['web'],
module: {
rules: [
{
Expand All @@ -86,7 +86,7 @@ module.exports = function (config) {
options: {
compilerOptions: {
module: 'es6',
target: 'es2018',
target: 'es2022',
jsx: 'preserve',
allowJs: true,
moduleResolution: 'node'
Expand Down
Loading

0 comments on commit ead33f4

Please sign in to comment.