File tree Expand file tree Collapse file tree 6 files changed +14
-13
lines changed Expand file tree Collapse file tree 6 files changed +14
-13
lines changed Original file line number Diff line number Diff line change 1818 "react/sort-comp" : " off" ,
1919 "react/jsx-props-no-spreading" : " off" ,
2020 "react/state-in-constructor" : " off" ,
21+ "import/extensions" : " off" ,
2122 "import/prefer-default-export" : " off"
2223 }
2324}
Original file line number Diff line number Diff line change 11/* eslint-disable react/no-danger */
22import path from 'path'
33import fs from 'fs'
4- import uniq from 'lodash/uniq'
5- import uniqBy from 'lodash/uniqBy'
6- import flatMap from 'lodash/flatMap'
4+ import uniq from 'lodash/uniq.js '
5+ import uniqBy from 'lodash/uniqBy.js '
6+ import flatMap from 'lodash/flatMap.js '
77import React from 'react'
8- import { invariant , getRequiredChunkKey } from './sharedInternals'
9- import ChunkExtractorManager from './ChunkExtractorManager'
10- import { smartRequire , joinURLPath , readJsonFileSync } from './util'
8+ import { invariant , getRequiredChunkKey } from './sharedInternals.js '
9+ import ChunkExtractorManager from './ChunkExtractorManager.js '
10+ import { smartRequire , joinURLPath , readJsonFileSync } from './util.js '
1111
1212const EXTENSION_SCRIPT_TYPES = {
1313 '.js' : 'script' ,
Original file line number Diff line number Diff line change 11/* eslint-disable import/no-extraneous-dependencies */
2- import 'regenerator-runtime/runtime'
2+ import 'regenerator-runtime/runtime.js '
33import path from 'path'
44import stats from '../__fixtures__/stats.json'
5- import ChunkExtractor from './ChunkExtractor'
5+ import ChunkExtractor from './ChunkExtractor.js '
66
77const targetPath = path . resolve (
88 __dirname ,
@@ -683,7 +683,7 @@ describe('ChunkExtrator', () => {
683683 expect ( extractor . inputFileSystem . readFile ) . toHaveBeenCalledTimes ( 2 )
684684 expect ( data ) . toMatchInlineSnapshot ( `
685685 "foo
686-
686+
687687 foo
688688 "
689689 ` )
Original file line number Diff line number Diff line change 11import React from 'react'
2- import { Context } from './sharedInternals'
2+ import { Context } from './sharedInternals.js '
33
44const ChunkExtractorManager = ( { extractor, children } ) => (
55 < Context . Provider value = { extractor } > { children } </ Context . Provider >
Original file line number Diff line number Diff line change 1- export { default as ChunkExtractorManager } from './ChunkExtractorManager'
2- export { default as ChunkExtractor } from './ChunkExtractor'
1+ export { default as ChunkExtractorManager } from './ChunkExtractorManager.js '
2+ export { default as ChunkExtractor } from './ChunkExtractor.js '
Original file line number Diff line number Diff line change 1- import { joinURLPath } from './util'
1+ import { joinURLPath } from './util.js '
22
33describe ( 'util' , ( ) => {
44 describe ( '#joinURLPath' , ( ) => {
You can’t perform that action at this time.
0 commit comments