diff --git a/package.json b/package.json index 900fcbf5..073cf613 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "7.0.0", "description": "Tiny but powerful full-text search engine for browser and Node", "main": "dist/umd/index.js", - "module": "dist/es5m/index.js", + "module": "dist/es6m/index.js", "es2015": "dist/es/index.js", "type": "module", "exports": { diff --git a/rollup.config.js b/rollup.config.js index 182e2620..1f44a2ca 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -44,13 +44,13 @@ const benchmarks = { export default process.env.BENCHMARKS === 'true' ? [benchmarks] : [ // Main (MiniSearch) config({ format: 'es', input: 'src/index.ts', output: 'es6' }), - config({ format: 'es', input: 'src/index.ts', output: 'es5m', dir: 'es5m' }), + config({ format: 'es', input: 'src/index.ts', output: 'es6m', dir: 'es6m' }), config({ format: 'cjs', input: 'src/index.ts', output: 'cjs', dir: 'cjs', extension: 'cjs', exports: 'default' }), config({ format: 'umd', input: 'src/index.ts', output: 'umd', name: 'MiniSearch' }), // SearchableMap config({ format: 'es', input: 'src/SearchableMap/SearchableMap.ts', output: 'es6' }), - config({ format: 'es', input: 'src/SearchableMap/SearchableMap.ts', output: 'es5m', dir: 'es5m' }), + config({ format: 'es', input: 'src/SearchableMap/SearchableMap.ts', output: 'es6m', dir: 'es6m' }), config({ format: 'cjs', input: 'src/SearchableMap/SearchableMap.ts', output: 'cjs', dir: 'cjs', extension: 'cjs', exports: 'default' }), config({ format: 'umd', input: 'src/SearchableMap/SearchableMap.ts', output: 'umd', name: 'MiniSearch' }),