Skip to content

Commit

Permalink
Deduplicate acorn import
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Jan 20, 2021
1 parent f051067 commit c8722e3
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
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
@@ -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
@@ -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 c8722e3

Please sign in to comment.