Skip to content

Commit

Permalink
Remove remaining references
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Apr 22, 2021
1 parent 3795942 commit d4f77d8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
@@ -1,7 +1,4 @@
{
"sourceType": "module",
"plugins": [
"moduleStringNames"
],
"throws": "A string literal cannot be used as an imported binding.\n- Did you mean `import { \"foo\" as foo }`? (1:9)"
}
}
@@ -1,4 +1,4 @@
{
"sourceType": "module",
"plugins": ["flow", "moduleStringNames"]
"plugins": ["flow"]
}
1 change: 0 additions & 1 deletion packages/babel-traverse/test/introspection.js
Expand Up @@ -176,7 +176,6 @@ describe("path/introspection", function () {
it('rejects the "export called *" trick', function () {
const program = getPath(`import * as ns from "source"; ns["*"].nested;`, {
sourceType: "module",
plugins: ["moduleStringNames"],
});
const reference = program.get("body.1.expression");
expect(reference.referencesImport("source", "nested")).toBe(false);
Expand Down

0 comments on commit d4f77d8

Please sign in to comment.