Skip to content

Commit

Permalink
Deduplicate acorn import (#3929)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert authored Jan 20, 2021
1 parent f051067 commit 1ca0404
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
3 changes: 2 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ const moduleAliases = {
resolve: ['.js', '.json', '.md'],
entries: [
{ find: 'help.md', replacement: path.resolve('cli/help.md') },
{ find: 'package.json', replacement: path.resolve('package.json') }
{ find: 'package.json', replacement: path.resolve('package.json') },
{ find: 'acorn', replacement: path.resolve('node_modules/acorn/dist/acorn.mjs') }
]
};

Expand Down
1 change: 1 addition & 0 deletions src/utils/options/normalizeInputOptions.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import * as acorn from 'acorn';
import injectClassFields from 'acorn-class-fields';
import injectStaticClassFeatures from 'acorn-static-class-features';
import {
Expand Down
11 changes: 0 additions & 11 deletions typings/declarations.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// internal
declare module 'rollup';
declare module 'help.md' {
const str: string;
export default str;
Expand All @@ -16,16 +15,6 @@ declare module 'acorn-class-fields' {
export default plugin;
}

declare module 'acorn-import-meta' {
const plugin: (BaseParser: typeof acorn.Parser) => typeof acorn.Parser;
export default plugin;
}

declare module 'acorn-export-ns-from' {
const plugin: (BaseParser: typeof acorn.Parser) => typeof acorn.Parser;
export default plugin;
}

declare module 'fsevents' {
export default {};
}

0 comments on commit 1ca0404

Please sign in to comment.