Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove acorn-bigint and acorn-dynamic-import devDenpendencies #3058

Merged
merged 9 commits into from Aug 14, 2019
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 0 additions & 2 deletions package.json
Expand Up @@ -65,8 +65,6 @@
"@types/chokidar": "^2.1.3",
"@types/micromatch": "^3.1.0",
"@types/minimist": "^1.2.0",
"acorn-bigint": "^0.4.0",
"acorn-dynamic-import": "^4.0.0",
"acorn-import-meta": "^1.0.0",
"acorn-jsx": "^5.0.1",
"acorn-walk": "^6.2.0",
Expand Down
1 change: 0 additions & 1 deletion rollup.config.js
Expand Up @@ -81,7 +81,6 @@ function fixAcornEsmImport() {

const moduleAliases = {
resolve: ['.js', '.json', '.md'],
'acorn-dynamic-import': path.resolve('node_modules/acorn-dynamic-import/src/index.js'),
'help.md': path.resolve('cli/help.md'),
'package.json': path.resolve('package.json')
};
Expand Down
4 changes: 0 additions & 4 deletions src/Graph.ts
@@ -1,6 +1,4 @@
import * as acorn from 'acorn';
import injectBigInt from 'acorn-bigint';
import injectDynamicImportPlugin from 'acorn-dynamic-import';
import injectImportMeta from 'acorn-import-meta';
import * as ESTree from 'estree';
import GlobalScope from './ast/scopes/GlobalScope';
Expand Down Expand Up @@ -171,9 +169,7 @@ export default class Graph {
this.acornOptions = options.acorn || {};
const acornPluginsToInject = [];

acornPluginsToInject.push(injectDynamicImportPlugin);
acornPluginsToInject.push(injectImportMeta);
acornPluginsToInject.push(injectBigInt);

if (options.experimentalTopLevelAwait) {
(this.acornOptions as any).allowAwaitOutsideFunction = true;
Expand Down
2 changes: 0 additions & 2 deletions typings/declarations.d.ts
Expand Up @@ -13,6 +13,4 @@ declare module 'date-time';
declare module 'locate-character';
declare module 'is-reference';
declare module 'require-relative';
declare module 'acorn-dynamic-import';
declare module 'acorn-import-meta';
declare module 'acorn-bigint';