Skip to content
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.

Fixing imports from acorn and resolve #236 #237

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { statSync } from 'fs';
import { dirname, extname, resolve, sep } from 'path';
import { sync as nodeResolveSync } from 'resolve';
import {default as nodeResolveSync} from 'resolve';
import { createFilter } from 'rollup-pluginutils';
import { EXTERNAL, PREFIX, HELPERS_ID, HELPERS } from './helpers.js';
import defaultResolver from './defaultResolver.js';
Expand Down
4 changes: 2 additions & 2 deletions src/transform.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import acorn from 'acorn';
import {parse} from 'acorn';
import { walk } from 'estree-walker';
import MagicString from 'magic-string';
import { attachScopes, makeLegalIdentifier } from 'rollup-pluginutils';
Expand Down Expand Up @@ -28,7 +28,7 @@ function deconflict ( scope, globals, identifier ) {

function tryParse ( code, id ) {
try {
return acorn.parse( code, {
return parse( code, {
ecmaVersion: 8,
sourceType: 'module',
allowReturnOutsideFunction: true
Expand Down