Skip to content

Commit

Permalink
fix(build): exclude regenerator and update target to ie 11
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Aug 24, 2020
1 parent 2b15871 commit 48acfc5
Show file tree
Hide file tree
Showing 5 changed files with 2,040 additions and 1,957 deletions.
5 changes: 1 addition & 4 deletions .eslintrc
@@ -1,8 +1,5 @@
{
"extends": [
"@nuxtjs/eslint-config-typescript"
],
"rules": {
"no-useless-constructor": 0
}
]
}
4 changes: 2 additions & 2 deletions jest.config.js
Expand Up @@ -5,8 +5,8 @@ module.exports = {
globals: {
'ts-jest': {
tsConfig: {
esModuleInterop: false
esModuleInterop: false
}
}
}
};
}
12 changes: 3 additions & 9 deletions package.json
Expand Up @@ -34,22 +34,16 @@
"@babel/preset-env": "latest",
"@babel/preset-typescript": "latest",
"@nuxtjs/eslint-config-typescript": "^1.0.2",
"@rollup/plugin-babel": "^5.0.0",
"@rollup/plugin-node-resolve": "^7.1.3",
"@types/jest": "latest",
"babel-jest": "latest",
"codecov": "latest",
"core-js": "3",
"eslint": "latest",
"eslint-config-standard": "latest",
"eslint-plugin-import": "latest",
"eslint-plugin-jest": "latest",
"eslint-plugin-node": "latest",
"eslint-plugin-promise": "latest",
"eslint-plugin-standard": "latest",
"jest": "latest",
"rollup": "latest",
"rollup-plugin-babel": "latest",
"rollup-plugin-node-resolve": "latest",
"rollup-plugin-terser": "latest",
"rollup-plugin-typescript2": "latest",
"standard-version": "latest",
"ts-jest": "latest",
"typescript": "latest"
Expand Down
9 changes: 6 additions & 3 deletions rollup.config.js
@@ -1,5 +1,5 @@
import babel from 'rollup-plugin-babel'
import resolve from 'rollup-plugin-node-resolve'
import babel from '@rollup/plugin-babel'
import resolve from '@rollup/plugin-node-resolve'
import { terser } from 'rollup-plugin-terser'

const extensions = ['.js', '.ts', '.tsx']
Expand All @@ -26,7 +26,10 @@ export default [
babel({
extensions,
presets: [
'@babel/preset-env',
['@babel/preset-env', {
targets: { ie: '11' },
exclude: ['@babel/plugin-transform-regenerator']
}],
'@babel/preset-typescript'
]
}),
Expand Down

0 comments on commit 48acfc5

Please sign in to comment.