Skip to content

Commit

Permalink
fix: transpiler issues, move back to babel
Browse files Browse the repository at this point in the history
need to work out more kinks with esbuild.
  • Loading branch information
oze4 committed Aug 7, 2021
1 parent ff12774 commit 20e9a1e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* https://jestjs.io/docs/en/configuration.html
*/

export default {
module.exports = {
// All imported modules in your tests should be mocked automatically
// automock: false,

Expand Down Expand Up @@ -186,7 +186,7 @@ export default {

// A map from regular expressions to paths to transformers
transform: {
'\\.js$': ['babel-jest', { configFile: './babel.config.cjs' }]
'\\.js$': ['babel-jest', { configFile: './babel.config.js' }]
},

// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "@material-table/core",
"type": "module",
"publishConfig": {
"access": "public"
},
Expand All @@ -16,7 +15,8 @@
"scripts": {
"start": "./node_modules/.bin/webpack serve --config ./__tests__/demo/webpack.config.js --mode development --progress",
"build:esbuild": "ts-node esbuild.config.js",
"build": "npm run build:esbuild",
"build:babel": "./node_modules/.bin/babel src -d dist",
"build": "npm run build:babel",
"lint": "npm run eslint && npm run tsc",
"eslint": "./node_modules/.bin/eslint src/** -c ./.eslintrc --ignore-path ./.eslintignore",
"tsc": "./node_modules/.bin/tsc --noEmit --lib es6,dom --skipLibCheck types/index.d.ts",
Expand Down

0 comments on commit 20e9a1e

Please sign in to comment.