Skip to content

Commit

Permalink
Update to babel 7
Browse files Browse the repository at this point in the history
  • Loading branch information
Hopding committed Dec 18, 2018
1 parent feca73a commit 70049f8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"presets": ["es2015"],
"presets": ["env"],
"plugins": ["transform-decorators-legacy", "transform-class-properties", "transform-runtime"],
"env": {
"cover": {
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ coverage/
coverage.html
*.js.map
.nyc_output
yarn-error.log
19 changes: 14 additions & 5 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,24 @@ import localResolve from 'rollup-plugin-local-resolve';
import json from 'rollup-plugin-json';

export default {
format: 'cjs',
input: 'src/index.js',
output: {
name: 'fontkit',
format: 'umd',
},
plugins: [
localResolve(),
json(),
babel({
babelrc: false,
presets: [['es2015', { modules: false, loose: true }]],
plugins: ['transform-decorators-legacy', 'transform-class-properties', 'transform-runtime'],
presets: [
['@babel/preset-env', { modules: false, loose: true }]
],
plugins: [
['@babel/plugin-proposal-decorators', { legacy: true }],
['@babel/plugin-proposal-class-properties']
],
runtimeHelpers: true
})
]
}),
],
};

0 comments on commit 70049f8

Please sign in to comment.