Skip to content

Commit

Permalink
check rollup version
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Jul 29, 2020
1 parent b659573 commit 949ab6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/babel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"peerDependencies": {
"@babel/core": "^7.0.0",
"@types/babel__core": "^7.1.9",
"rollup": "^1.26.0||^2.0.0"
"rollup": "^1.20.0||^2.0.0"
},
"dependencies": {
"@babel/helper-module-imports": "^7.7.4",
Expand Down
4 changes: 3 additions & 1 deletion packages/babel/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as babel from '@babel/core';
import { version } from "rollup/package.json";
import { createFilter } from '@rollup/pluginutils';

import { BUNDLED, HELPERS } from './constants';
Expand Down Expand Up @@ -45,7 +46,8 @@ const unpackInputPluginOptions = ({ skipPreflightCheck = false, ...rest }) => {
supportsStaticESM: true,
supportsDynamicImport: true,
supportsTopLevelAwait: true,
supportsExportNamespaceFrom: true,
// todo: remove version checks for 1.20 - 1.25 when we bump peer deps
supportsExportNamespaceFrom: !version.match(/^1\.2[0-5]/),
...rest.caller
}
});
Expand Down

0 comments on commit 949ab6d

Please sign in to comment.