Skip to content

Commit

Permalink
Use commonjs build of acorn
Browse files Browse the repository at this point in the history
This could fix #159.
  • Loading branch information
adrianheine committed Oct 17, 2018
1 parent 455a224 commit 3107510
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions rollup.create-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const createConfig = (opts) => {
external: external,
plugins: [
json(),
commonjs({ extensions: ['.js', '.mjs'] }),
commonjs(),
buble({
target: !browser ? { node: 4 } : null,
include: [
Expand All @@ -34,7 +34,7 @@ const createConfig = (opts) => {
dangerousForOf: true
}
}),
resolve()
resolve({module: false})
],
};
};
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Parser } from 'acorn';
import acorn from 'acorn';
import acornJsx from 'acorn-jsx';
import acornDynamicImport from 'acorn-dynamic-import';
import Program from './program/Program.js';
import { features, matrix } from './support.js';
import getSnippet from './utils/getSnippet.js';

const parser = Parser.extend(acornDynamicImport, acornJsx());
const parser = acorn.Parser.extend(acornDynamicImport, acornJsx());

const dangerousTransforms = ['dangerousTaggedTemplateString', 'dangerousForOf'];

Expand Down

0 comments on commit 3107510

Please sign in to comment.