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,19 +14,19 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { TestServer } from '../utils/testserver/index';
|
||||
import { TestServer } from '../utils/testserver/index.js';
|
||||
import * as path from 'path';
|
||||
import * as fs from 'fs';
|
||||
import * as os from 'os';
|
||||
import sinon from 'sinon';
|
||||
import puppeteer from '../src/index';
|
||||
import { Browser, BrowserContext } from '../src/common/Browser';
|
||||
import { Page } from '../src/common/Page';
|
||||
import { Puppeteer } from '../src/common/Puppeteer';
|
||||
import utils from './utils';
|
||||
import puppeteer from '../lib/cjs/index.js';
|
||||
import { Browser, BrowserContext } from '../lib/cjs/common/Browser.js';
|
||||
import { Page } from '../lib/cjs/common/Page.js';
|
||||
import { Puppeteer } from '../lib/cjs/common/Puppeteer.js';
|
||||
import utils from './utils.js';
|
||||
import rimraf from 'rimraf';
|
||||
|
||||
import { trackCoverage } from './coverage-utils';
|
||||
import { trackCoverage } from './coverage-utils.js';
|
||||
|
||||
const setupServer = async () => {
|
||||
const assetsPath = path.join(__dirname, 'assets');
|
||||
|
||||
Reference in New Issue
Block a user