mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: enforce file extensions on imports (#6202)
* chore: enforce file extensions on imports To make our output agnostic it should include file extensions in the output, as per the ESM spec. It's a bit odd for Node packages but makes it easier to publish a browser build.
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import utils from './utils';
|
||||
import utils from './utils.js';
|
||||
const { waitEvent } = utils;
|
||||
import expect from 'expect';
|
||||
import {
|
||||
@@ -22,8 +22,8 @@ import {
|
||||
setupTestBrowserHooks,
|
||||
setupTestPageAndContextHooks,
|
||||
itFailsFirefox,
|
||||
} from './mocha-utils';
|
||||
import { Target } from '../src/common/Target';
|
||||
} from './mocha-utils'; // eslint-disable-line import/extensions
|
||||
import { Target } from '../lib/cjs/common/Target.js';
|
||||
|
||||
describe('Target', function () {
|
||||
setupTestBrowserHooks();
|
||||
|
||||
Reference in New Issue
Block a user