Skip to content

Commit 1c8e7f4

Browse files
Merge pull request #627 from developit/allow-import-meta
2 parents a856b02 + 0c68bb6 commit 1c8e7f4

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

package-lock.json

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
"dependencies": {
6464
"@babel/core": "^7.8.7",
6565
"@babel/plugin-proposal-class-properties": "7.7.4",
66+
"@babel/plugin-syntax-import-meta": "^7.8.3",
6667
"@babel/plugin-syntax-jsx": "^7.7.4",
6768
"@babel/plugin-transform-flow-strip-types": "^7.7.4",
6869
"@babel/plugin-transform-react-jsx": "^7.7.7",

src/lib/babel-custom.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ export default () => {
7070
const defaultPlugins = createConfigItems(
7171
'plugin',
7272
[
73+
{
74+
name: '@babel/plugin-syntax-import-meta',
75+
},
7376
{
7477
name: '@babel/plugin-transform-react-jsx',
7578
pragma: customOptions.pragma || 'h',

0 commit comments

Comments
 (0)