File tree Expand file tree Collapse file tree 8 files changed +17
-21
lines changed Expand file tree Collapse file tree 8 files changed +17
-21
lines changed Original file line number Diff line number Diff line change 24
24
25
25
import hasIn from 'lodash.hasin' ;
26
26
import isNil from 'lodash.isnil' ;
27
- import { RollupPluginEsFormatter } from './rollup-plugin-esformatter.js ' ;
27
+ import { RollupPluginEsFormatter } from './rollup-plugin-esformatter' ;
28
28
29
29
/**
30
30
* Check if `sourcemap` option is enable or not.
Original file line number Diff line number Diff line change 22
22
* SOFTWARE.
23
23
*/
24
24
25
- import { RollupPluginEsFormatter } from './rollup-plugin-esformatter.js ' ;
25
+ import { RollupPluginEsFormatter } from './rollup-plugin-esformatter' ;
26
26
27
27
/**
28
28
* Create plugin compatible with rollup >= 1.0.0
Original file line number Diff line number Diff line change 23
23
*/
24
24
25
25
import { rollup } from 'rollup' ;
26
- import { rollupPluginLegacy } from './index-rollup-legacy.js ' ;
27
- import { rollupPluginStable } from './index-rollup-stable.js ' ;
26
+ import { rollupPluginLegacy } from './index-rollup-legacy' ;
27
+ import { rollupPluginStable } from './index-rollup-stable' ;
28
28
29
29
const VERSION = rollup . VERSION || '0' ;
30
30
const MAJOR_VERSION = Number ( VERSION . split ( '.' ) [ 0 ] ) || 0 ;
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ import isEmpty from 'lodash.isempty';
27
27
import hasIn from 'lodash.hasin' ;
28
28
import isNil from 'lodash.isnil' ;
29
29
import MagicString from 'magic-string' ;
30
- import { diffChars } from 'diff' ;
30
+ import * as diff from 'diff' ;
31
31
import esformatter from 'esformatter' ;
32
32
33
33
/**
@@ -111,7 +111,7 @@ export class RollupPluginEsFormatter {
111
111
console . warn ( `[${ this . name } ] This may take a moment (depends on the size of your bundle)` ) ;
112
112
113
113
const magicString = new MagicString ( source ) ;
114
- const changes = diffChars ( source , output ) ;
114
+ const changes = diff . diffChars ( source , output ) ;
115
115
116
116
let idx = 0 ;
117
117
Original file line number Diff line number Diff line change 23
23
*/
24
24
25
25
import esformatter from 'esformatter' ;
26
- import { verifyWarnLogsBecauseOfSourcemap } from './utils/verify-warn-logs-because-of-source-map.js ' ;
27
- import { verifyWarnLogsNotTriggered } from './utils/verify-warn-logs-not-triggered.js ' ;
28
- import { rollupPluginLegacy } from '../src/index-rollup-legacy.js ' ;
26
+ import { verifyWarnLogsBecauseOfSourcemap } from './utils/verify-warn-logs-because-of-source-map' ;
27
+ import { verifyWarnLogsNotTriggered } from './utils/verify-warn-logs-not-triggered' ;
28
+ import { rollupPluginLegacy } from '../src/index-rollup-legacy' ;
29
29
30
30
describe ( 'rollup-plugin-esformatter [legacy]' , ( ) => {
31
31
beforeEach ( ( ) => {
Original file line number Diff line number Diff line change 22
22
* SOFTWARE.
23
23
*/
24
24
25
- 'use strict' ;
26
-
27
25
import esformatter from 'esformatter' ;
28
- import { verifyWarnLogsBecauseOfSourcemap } from './utils/verify-warn-logs-because-of-source-map.js ' ;
29
- import { verifyWarnLogsNotTriggered } from './utils/verify-warn-logs-not-triggered.js ' ;
30
- import { rollupPluginStable } from '../src/index-rollup-stable.js ' ;
26
+ import { verifyWarnLogsBecauseOfSourcemap } from './utils/verify-warn-logs-because-of-source-map' ;
27
+ import { verifyWarnLogsNotTriggered } from './utils/verify-warn-logs-not-triggered' ;
28
+ import { rollupPluginStable } from '../src/index-rollup-stable' ;
31
29
32
30
describe ( 'rollup-plugin-esformatter [stable]' , ( ) => {
33
31
beforeEach ( ( ) => {
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ import path from 'path';
27
27
import * as rollup from 'rollup' ;
28
28
import tmp from 'tmp' ;
29
29
import Q from 'q' ;
30
- import { verifyWarnLogsBecauseOfSourcemap } from '../utils/verify-warn-logs-because-of-source-map.js ' ;
31
- import esformatter from '../../src/index.js ' ;
30
+ import { verifyWarnLogsBecauseOfSourcemap } from '../utils/verify-warn-logs-because-of-source-map' ;
31
+ import esformatter from '../../src/index' ;
32
32
33
33
describe ( 'rollup-plugin-esformatter' , ( ) => {
34
34
let tmpDir ;
Original file line number Diff line number Diff line change 22
22
* SOFTWARE.
23
23
*/
24
24
25
- 'use strict' ;
26
-
27
- import { RollupPluginEsFormatter } from '../src/rollup-plugin-esformatter.js' ;
28
- import { verifyWarnLogsBecauseOfSourcemap } from './utils/verify-warn-logs-because-of-source-map.js' ;
29
- import { verifyWarnLogsNotTriggered } from './utils/verify-warn-logs-not-triggered.js' ;
25
+ import { RollupPluginEsFormatter } from '../src/rollup-plugin-esformatter' ;
26
+ import { verifyWarnLogsBecauseOfSourcemap } from './utils/verify-warn-logs-because-of-source-map' ;
27
+ import { verifyWarnLogsNotTriggered } from './utils/verify-warn-logs-not-triggered' ;
30
28
31
29
describe ( 'RollupPluginEsFormatter' , ( ) => {
32
30
beforeEach ( ( ) => {
You can’t perform that action at this time.
0 commit comments