Skip to content

Commit

Permalink
Split chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
TrySound committed Jul 24, 2019
1 parent 26f1bc6 commit c3c46fe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion linkify/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "remarkable/linkify",
"main": "../lib/linkify.js"
"main": "../dist/cjs/linkify.js",
"module": "../dist/esm/linkify.js"
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
"lib"
],
"bin": "./bin/remarkable.js",
"main": "./dist/remarkable.cjs.js",
"module": "./dist/remarkable.esm.js",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"engines": {
"node": ">= 0.10.0"
},
Expand Down
3 changes: 1 addition & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@ import path from 'path';
import nodeResolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import { terser } from 'rollup-plugin-terser';
import pkg from './package.json';

const name = 'Remarkable';
const external = id => !id.startsWith('.') && !path.isAbsolute(id);

export default [
{
input: ['./lib/index.js', './lib/linkify.js'],
output: { file: 'dist/cjs', format: 'cjs' },
output: { dir: 'dist/cjs', format: 'cjs' },
external,
plugins: [
commonjs(),
Expand Down

0 comments on commit c3c46fe

Please sign in to comment.