Skip to content

Commit

Permalink
maybe like this
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Oct 16, 2024
1 parent ae4b834 commit 1a5d456
Show file tree
Hide file tree
Showing 4 changed files with 128 additions and 2 deletions.
79 changes: 77 additions & 2 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,11 +1,86 @@
{
"presets": [
[
"@babel/env",
"@babel/preset-env",
{
"debug": true,
"corejs": "3.38",
"include": ["es.array.from"],
"useBuiltIns": "usage",
"include": [
"es.array.from"
],
"exclude": [
"es.array.at",
"es.array.concat",
"es.array.find",
"es.array.find-index",
"es.array.fill",
"es.array.filter",
"es.array.flat-map",
"es.array.includes",
"es.array.iterator",
"es.array.join",
"es.array.map",
"es.array.slice",
"es.array.splice",
"es.array.sort",
"es.array.unscopables.flat-map",
"es.array-buffer.constructor",
"es.error.cause",
"es.function.name",
"es.global-this",
"es.json.stringify",
"es.math.trunc",
"es.math.sign",
"es.map",
"es.number.constructor",
"es.number.is-integer",
"es.number.is-nan",
"es.number.to-fixed",
"es.object.assign",
"es.object.entries",
"es.object.get-own-property-descriptor",
"es.object.get-own-property-names",
"es.object.keys",
"es.object.to-string",
"es.object.values",
"es.promise",
"es.promise.finally",
"es.reflect.get",
"es.reflect.to-string-tag",
"es.regexp.*",
"es.set",
"es.string.ends-with",
"es.string.includes",
"es.string.iterator",
"es.string.link",
"es.string.match",
"es.string.match-all",
"es.string.repeat",
"es.string.replace",
"es.string.search",
"es.string.starts-with",
"es.string.split",
"es.string.sub",
"es.string.trim",
"es.symbol",
"es.symbol.description",
"es.typed-array.*",
"es.weak-map",
"es.weak-set",
"esnext.global-this",
"esnext.string.match-all",
"esnext.typed-array.*",
"web.atob",
"web.dom-collections.for-each",
"web.dom-collections.iterator",
"web.dom-exception.constructor",
"web.dom-exception.stack",
"web.dom-exception.to-string-tag",
"web.url",
"web.url-search-params",
"web.url.to-json"
],
"targets": ">0.5%, last 2 versions, Firefox ESR, not dead, IE 11"
}
],
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"@cypress/skip-test": "^2.6.1",
"@jest/globals": "^27.5.1",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^28.0.1",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.4",
Expand Down
48 changes: 48 additions & 0 deletions pnpm-lock.yaml

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

2 changes: 2 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ import terser from '@rollup/plugin-terser'
import { visualizer } from 'rollup-plugin-visualizer'
import fs from 'fs'
import path from 'path'
import commonjs from '@rollup/plugin-commonjs'

const plugins = [
json(),
resolve({ browser: true }),
commonjs(),
typescript({ sourceMap: true }),
babel({
extensions: ['.js', '.jsx', '.ts', '.tsx'],
Expand Down

0 comments on commit 1a5d456

Please sign in to comment.