Skip to content

Commit

Permalink
fix: Enable dynamicImport plugin to support import() syntax (#903)
Browse files Browse the repository at this point in the history
Fixes #902
  • Loading branch information
tmcw committed Sep 7, 2017
1 parent 67c0a29 commit b97241f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 2 additions & 0 deletions __tests__/fixture/es6-import.input.js
Expand Up @@ -2,6 +2,8 @@ import hasEx6 from './es6-ext';
import multiply from './simple.input.js';
import * as foo from 'some-other-module';

import('./simple.input.js').then(() => {});

/**
* This function returns the number one.
* @returns {Number} numberone
Expand Down
18 changes: 8 additions & 10 deletions src/parsers/parse_to_ast.js
Expand Up @@ -6,20 +6,18 @@ var opts = {
allowImportExportEverywhere: true,
sourceType: 'module',
plugins: [
'jsx',
'flow',
'asyncFunctions',
'asyncGenerators',
'classConstructorCall',
'doExpressions',
'trailingFunctionCommas',
'objectRestSpread',
'decorators',
'classProperties',
'decorators',
'doExpressions',
'exportExtensions',
'exponentiationOperator',
'asyncGenerators',
'flow',
'functionBind',
'functionSent'
'functionSent',
'jsx',
'objectRestSpread',
'dynamicImport'
]
};

Expand Down

0 comments on commit b97241f

Please sign in to comment.