Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ module.exports = function (api) {
]
],
plugins: [
'@babel/plugin-proposal-object-rest-spread',
'@babel/plugin-transform-react-jsx',
'babel-plugin-transform-async-to-promises',
['babel-plugin-transform-rename-properties', { rename }]
],
include: ['**/src/**/*.js', '**/test/**/*.js'],
Expand Down
27 changes: 0 additions & 27 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,33 +111,6 @@ function createEsbuildPlugin() {
};
});

// Transpile node_modules that are es2015+ to es5 for IE11
build.onLoad({ filter: /kolorist/ }, async args => {
const contents = await fs.readFile(args.path, 'utf-8');

const tmp = await babel.transformAsync(contents, {
filename: args.path,
presets: [
[
'@babel/preset-env',
{
loose: true,
modules: false,
targets: {
browsers: ['last 2 versions', 'IE >= 11']
}
}
]
]
});

return {
contents: tmp.code,
resolveDir: path.dirname(args.path),
loader: 'js'
};
});

// Apply babel pass whenever we load a .js file
build.onLoad({ filter: /\.[mc]?js$/ }, async args => {
const contents = await fs.readFile(args.path, 'utf-8');
Expand Down
74 changes: 0 additions & 74 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
},
"types": "src/index.d.ts",
"scripts": {
"prepare": "husky && run-s build && npm-merge-driver-install",
"prepare": "husky && run-s build",
"build": "npm-run-all --parallel build:*",
"build:core": "microbundle build --raw --no-generateTypes -f cjs,esm,umd",
"build:core-min": "microbundle build --raw --no-generateTypes -f cjs,esm,umd,iife src/cjs.js -o dist/preact.min.js",
Expand Down Expand Up @@ -207,7 +207,6 @@
"@actions/github": "^6.0.0",
"@actions/glob": "^0.5.0",
"@babel/core": "^7.26.0",
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
"@babel/plugin-transform-react-jsx": "^7.25.9",
"@babel/plugin-transform-react-jsx-source": "^7.25.9",
"@babel/preset-env": "^7.26.0",
Expand All @@ -218,11 +217,8 @@
"@types/node": "^14.14.10",
"@types/sinon": "^9.0.11",
"babel-plugin-istanbul": "^7.0.0",
"babel-plugin-transform-async-to-promises": "^0.8.18",
"babel-plugin-transform-rename-properties": "0.1.0",
"chai": "^4.1.2",
"check-export-map": "^1.3.1",
"core-js": "^3.38.1",
"coveralls": "^3.1.1",
"cross-env": "^7.0.3",
"errorstacks": "^2.4.1",
Expand All @@ -240,7 +236,6 @@
"kolorist": "^1.8.0",
"microbundle": "^0.15.1",
"mocha": "^11.0.0",
"npm-merge-driver-install": "^3.0.0",
"npm-run-all2": "^7.0.0",
"oxlint": "^0.14.0",
"preact-render-to-string": "^6.5.0",
Expand Down
13 changes: 0 additions & 13 deletions test/polyfills.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
// ES2015 APIs used by developer tools integration
import 'core-js/es/map';
import 'core-js/es/promise';
import 'core-js/es/array/fill';
import 'core-js/es/array/from';
import 'core-js/es/array/find';
import 'core-js/es/array/includes';
import 'core-js/es/string/includes';
import 'core-js/es/object/assign';
import 'core-js/es/string/starts-with';
import 'core-js/es/string/code-point-at';
import 'core-js/es/string/from-code-point';
import 'core-js/es/string/repeat';
import * as kl from 'kolorist';

// Something that's loaded before this file polyfills Symbol object.
Expand Down
Loading