mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 04:32:01 +03:00
4a30fb3436
- Make rls happy. - Some minor parser error improvements. - Add reference files for ecmascript parser errors. - Improve error message of import/export used outside of a module
7 lines
177 B
Plaintext
7 lines
177 B
Plaintext
error: 'import', and 'export' cannot be used outside of module code
|
|
--> $DIR/tests/test262-parser/fail/d54b2db4548f1d82.module.js:1:2
|
|
|
|
|
1 | {import a from 'b';}
|
|
| ^^^^^^
|
|
|