chore: Remove terser from rollup config
This commit is contained in:
parent
c0e61756cb
commit
68854b0e66
157 changed files with 492 additions and 584 deletions
2
.github/workflows/tests.brian.yml
vendored
2
.github/workflows/tests.brian.yml
vendored
|
@ -23,7 +23,7 @@ jobs:
|
||||||
env:
|
env:
|
||||||
CI: true
|
CI: true
|
||||||
- name: Install peer & test dependencies
|
- name: Install peer & test dependencies
|
||||||
run: "cd packages/brian && npm install @freesewing/core@^2.16.2 @freesewing/plugin-bundle@^2.16.2 @freesewing/models@2.16.2 @freesewing/pattern-info@2.16.2 mocha chai"
|
run: "cd packages/brian && npm install @freesewing/core@^2.16.2 @freesewing/plugin-bundle@^2.16.2 @freesewing/plugin-mirror@^2.16.2 @freesewing/models@2.16.2 @freesewing/pattern-info@2.16.2 mocha chai"
|
||||||
env:
|
env:
|
||||||
CI: true
|
CI: true
|
||||||
- name: Build pattern
|
- name: Build pattern
|
||||||
|
|
19
CHANGELOG.md
19
CHANGELOG.md
|
@ -3,12 +3,31 @@
|
||||||
|
|
||||||
## 2.16.3 (NaN-NaN-NaN)
|
## 2.16.3 (NaN-NaN-NaN)
|
||||||
|
|
||||||
|
### brian
|
||||||
|
|
||||||
|
#### Added
|
||||||
|
|
||||||
|
- The `s3collar and `s3armhole` options now allow shifting the shoulder seam (`s3` is short for *Shift Shoulder Seam*)
|
||||||
|
|
||||||
### charlie
|
### charlie
|
||||||
|
|
||||||
#### Fixed
|
#### Fixed
|
||||||
|
|
||||||
- Add `@freesewing/plugin-mirror` as peer dependency
|
- Add `@freesewing/plugin-mirror` as peer dependency
|
||||||
|
|
||||||
|
### components
|
||||||
|
|
||||||
|
#### Changed
|
||||||
|
|
||||||
|
- Caption should not be passed as children to Legend and Example components See https://github.com/freesewing/freesewing/issues/1043
|
||||||
|
- Changed antman references to antperson
|
||||||
|
|
||||||
|
### i18n
|
||||||
|
|
||||||
|
#### Changed
|
||||||
|
|
||||||
|
- Changed antman references to antperson
|
||||||
|
|
||||||
### tutorial
|
### tutorial
|
||||||
|
|
||||||
#### Fixed
|
#### Fixed
|
||||||
|
|
|
@ -1,10 +1,15 @@
|
||||||
2.16.3:
|
2.16.3:
|
||||||
date: Unreleased
|
date: Unreleased
|
||||||
|
|
||||||
|
Added:
|
||||||
|
brian:
|
||||||
|
- The `s3collar and `s3armhole` options now allow shifting the shoulder seam
|
||||||
|
(`s3` is short for *Shift Shoulder Seam*)
|
||||||
|
|
||||||
Changed:
|
Changed:
|
||||||
components:
|
components:
|
||||||
- Caption should not be passed as children to Legend and Example components
|
- Caption should not be passed as children to Legend and Example components
|
||||||
See https://github.com/freesewing/freesewing/issues/1043
|
See https://github.com/freesewing/freesewing/issues/1043
|
||||||
- Changed antman references to antperson
|
- Changed antman references to antperson
|
||||||
|
|
||||||
i18n:
|
i18n:
|
||||||
|
|
|
@ -28,7 +28,6 @@ _types:
|
||||||
'webpack': '^5.37.0'
|
'webpack': '^5.37.0'
|
||||||
'rollup': '^2.50.6'
|
'rollup': '^2.50.6'
|
||||||
'@rollup/plugin-babel': '^5.3.0'
|
'@rollup/plugin-babel': '^5.3.0'
|
||||||
'rollup-plugin-terser': '^7.0.2'
|
|
||||||
'@rollup/plugin-commonjs': '^19.0.0'
|
'@rollup/plugin-commonjs': '^19.0.0'
|
||||||
'@rollup/plugin-json': '^4.1.0'
|
'@rollup/plugin-json': '^4.1.0'
|
||||||
'@rollup/plugin-node-resolve': '^13.0.0'
|
'@rollup/plugin-node-resolve': '^13.0.0'
|
||||||
|
|
|
@ -28,9 +28,12 @@
|
||||||
"react-intl": "^5.18.0",
|
"react-intl": "^5.18.0",
|
||||||
"react-scripts": "^4.0.3",
|
"react-scripts": "^4.0.3",
|
||||||
"file-saver": "^2.0.5",
|
"file-saver": "^2.0.5",
|
||||||
"react-markdown": "6.0.2"
|
"react-markdown": "6.0.2",
|
||||||
|
"source-map-explorer": "^2.5.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"analyze": "source-map-explorer 'build/static/js/*.js'",
|
||||||
|
"size": "source-map-explorer 'build/static/js/*.js' --tsv --no-root",
|
||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
"build": "react-scripts build",
|
"build": "react-scripts build",
|
||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
|
|
|
@ -60,7 +60,6 @@
|
||||||
"webpack": "^5.37.0",
|
"webpack": "^5.37.0",
|
||||||
"rollup": "^2.50.6",
|
"rollup": "^2.50.6",
|
||||||
"@rollup/plugin-babel": "^5.3.0",
|
"@rollup/plugin-babel": "^5.3.0",
|
||||||
"rollup-plugin-terser": "^7.0.2",
|
|
||||||
"@rollup/plugin-commonjs": "^19.0.0",
|
"@rollup/plugin-commonjs": "^19.0.0",
|
||||||
"@rollup/plugin-json": "^4.1.0",
|
"@rollup/plugin-json": "^4.1.0",
|
||||||
"@rollup/plugin-node-resolve": "^13.0.0",
|
"@rollup/plugin-node-resolve": "^13.0.0",
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: rollup.exports
|
exports: rollup.exports,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -28,10 +30,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,9 +28,12 @@
|
||||||
"react-intl": "^5.18.0",
|
"react-intl": "^5.18.0",
|
||||||
"react-scripts": "^4.0.3",
|
"react-scripts": "^4.0.3",
|
||||||
"file-saver": "^2.0.5",
|
"file-saver": "^2.0.5",
|
||||||
"react-markdown": "6.0.2"
|
"react-markdown": "6.0.2",
|
||||||
|
"source-map-explorer": "^2.5.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"analyze": "source-map-explorer 'build/static/js/*.js'",
|
||||||
|
"size": "source-map-explorer 'build/static/js/*.js' --tsv --no-root",
|
||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
"build": "react-scripts build",
|
"build": "react-scripts build",
|
||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
|
|
|
@ -59,7 +59,6 @@
|
||||||
"webpack": "^5.37.0",
|
"webpack": "^5.37.0",
|
||||||
"rollup": "^2.50.6",
|
"rollup": "^2.50.6",
|
||||||
"@rollup/plugin-babel": "^5.3.0",
|
"@rollup/plugin-babel": "^5.3.0",
|
||||||
"rollup-plugin-terser": "^7.0.2",
|
|
||||||
"@rollup/plugin-commonjs": "^19.0.0",
|
"@rollup/plugin-commonjs": "^19.0.0",
|
||||||
"@rollup/plugin-json": "^4.1.0",
|
"@rollup/plugin-json": "^4.1.0",
|
||||||
"@rollup/plugin-node-resolve": "^13.0.0",
|
"@rollup/plugin-node-resolve": "^13.0.0",
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: rollup.exports
|
exports: rollup.exports,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -28,10 +30,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,9 +28,12 @@
|
||||||
"react-intl": "^5.18.0",
|
"react-intl": "^5.18.0",
|
||||||
"react-scripts": "^4.0.3",
|
"react-scripts": "^4.0.3",
|
||||||
"file-saver": "^2.0.5",
|
"file-saver": "^2.0.5",
|
||||||
"react-markdown": "6.0.2"
|
"react-markdown": "6.0.2",
|
||||||
|
"source-map-explorer": "^2.5.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"analyze": "source-map-explorer 'build/static/js/*.js'",
|
||||||
|
"size": "source-map-explorer 'build/static/js/*.js' --tsv --no-root",
|
||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
"build": "react-scripts build",
|
"build": "react-scripts build",
|
||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
|
|
|
@ -59,7 +59,6 @@
|
||||||
"webpack": "^5.37.0",
|
"webpack": "^5.37.0",
|
||||||
"rollup": "^2.50.6",
|
"rollup": "^2.50.6",
|
||||||
"@rollup/plugin-babel": "^5.3.0",
|
"@rollup/plugin-babel": "^5.3.0",
|
||||||
"rollup-plugin-terser": "^7.0.2",
|
|
||||||
"@rollup/plugin-commonjs": "^19.0.0",
|
"@rollup/plugin-commonjs": "^19.0.0",
|
||||||
"@rollup/plugin-json": "^4.1.0",
|
"@rollup/plugin-json": "^4.1.0",
|
||||||
"@rollup/plugin-node-resolve": "^13.0.0",
|
"@rollup/plugin-node-resolve": "^13.0.0",
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: rollup.exports
|
exports: rollup.exports,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -28,10 +30,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,9 +28,12 @@
|
||||||
"react-intl": "^5.18.0",
|
"react-intl": "^5.18.0",
|
||||||
"react-scripts": "^4.0.3",
|
"react-scripts": "^4.0.3",
|
||||||
"file-saver": "^2.0.5",
|
"file-saver": "^2.0.5",
|
||||||
"react-markdown": "6.0.2"
|
"react-markdown": "6.0.2",
|
||||||
|
"source-map-explorer": "^2.5.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"analyze": "source-map-explorer 'build/static/js/*.js'",
|
||||||
|
"size": "source-map-explorer 'build/static/js/*.js' --tsv --no-root",
|
||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
"build": "react-scripts build",
|
"build": "react-scripts build",
|
||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
|
|
|
@ -59,7 +59,6 @@
|
||||||
"webpack": "^5.37.0",
|
"webpack": "^5.37.0",
|
||||||
"rollup": "^2.50.6",
|
"rollup": "^2.50.6",
|
||||||
"@rollup/plugin-babel": "^5.3.0",
|
"@rollup/plugin-babel": "^5.3.0",
|
||||||
"rollup-plugin-terser": "^7.0.2",
|
|
||||||
"@rollup/plugin-commonjs": "^19.0.0",
|
"@rollup/plugin-commonjs": "^19.0.0",
|
||||||
"@rollup/plugin-json": "^4.1.0",
|
"@rollup/plugin-json": "^4.1.0",
|
||||||
"@rollup/plugin-node-resolve": "^13.0.0",
|
"@rollup/plugin-node-resolve": "^13.0.0",
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: rollup.exports
|
exports: rollup.exports,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -28,10 +30,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
"@fontsource/permanent-marker": "latest",
|
"@fontsource/permanent-marker": "latest",
|
||||||
"@fontsource/roboto-mono": "latest",
|
"@fontsource/roboto-mono": "latest",
|
||||||
"@fontsource/ubuntu": "latest",
|
"@fontsource/ubuntu": "latest",
|
||||||
"@freesewing/brian": "^2.16.2",
|
|
||||||
"@freesewing/components": "latest",
|
"@freesewing/components": "latest",
|
||||||
"@freesewing/core": "latest",
|
"@freesewing/core": "latest",
|
||||||
"@freesewing/css-theme": "latest",
|
"@freesewing/css-theme": "latest",
|
||||||
|
@ -16,22 +15,25 @@
|
||||||
"@freesewing/mui-theme": "latest",
|
"@freesewing/mui-theme": "latest",
|
||||||
"@freesewing/pattern-info": "latest",
|
"@freesewing/pattern-info": "latest",
|
||||||
"@freesewing/plugin-bundle": "latest",
|
"@freesewing/plugin-bundle": "latest",
|
||||||
|
"@freesewing/plugin-theme": "latest",
|
||||||
"@freesewing/plugin-i18n": "latest",
|
"@freesewing/plugin-i18n": "latest",
|
||||||
"@freesewing/plugin-svgattr": "latest",
|
"@freesewing/plugin-svgattr": "latest",
|
||||||
"@freesewing/plugin-theme": "latest",
|
|
||||||
"@freesewing/utils": "latest",
|
"@freesewing/utils": "latest",
|
||||||
"@material-ui/core": "^4.11.4",
|
"@material-ui/core": "^4.11.4",
|
||||||
"@material-ui/icons": "^4.11.2",
|
"@material-ui/icons": "^4.11.2",
|
||||||
"@material-ui/lab": "^v4.0.0-alpha.57",
|
"@material-ui/lab": "^v4.0.0-alpha.57",
|
||||||
"file-saver": "^2.0.5",
|
|
||||||
"prismjs": "1.23.0",
|
"prismjs": "1.23.0",
|
||||||
"react": "^17.0.2",
|
"react": "^17.0.2",
|
||||||
"react-dom": "^17.0.2",
|
"react-dom": "^17.0.2",
|
||||||
"react-intl": "^5.18.0",
|
"react-intl": "^5.18.0",
|
||||||
|
"react-scripts": "^4.0.3",
|
||||||
|
"file-saver": "^2.0.5",
|
||||||
"react-markdown": "6.0.2",
|
"react-markdown": "6.0.2",
|
||||||
"react-scripts": "^4.0.3"
|
"source-map-explorer": "^2.5.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"analyze": "source-map-explorer 'build/static/js/*.js'",
|
||||||
|
"size": "source-map-explorer 'build/static/js/*.js' --tsv --no-root",
|
||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
"build": "react-scripts build",
|
"build": "react-scripts build",
|
||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
|
|
|
@ -60,7 +60,6 @@
|
||||||
"webpack": "^5.37.0",
|
"webpack": "^5.37.0",
|
||||||
"rollup": "^2.50.6",
|
"rollup": "^2.50.6",
|
||||||
"@rollup/plugin-babel": "^5.3.0",
|
"@rollup/plugin-babel": "^5.3.0",
|
||||||
"rollup-plugin-terser": "^7.0.2",
|
|
||||||
"@rollup/plugin-commonjs": "^19.0.0",
|
"@rollup/plugin-commonjs": "^19.0.0",
|
||||||
"@rollup/plugin-json": "^4.1.0",
|
"@rollup/plugin-json": "^4.1.0",
|
||||||
"@rollup/plugin-node-resolve": "^13.0.0",
|
"@rollup/plugin-node-resolve": "^13.0.0",
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: rollup.exports
|
exports: rollup.exports,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -28,10 +30,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
// terser({
|
|
||||||
// output: {
|
|
||||||
// preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,9 +28,12 @@
|
||||||
"react-intl": "^5.18.0",
|
"react-intl": "^5.18.0",
|
||||||
"react-scripts": "^4.0.3",
|
"react-scripts": "^4.0.3",
|
||||||
"file-saver": "^2.0.5",
|
"file-saver": "^2.0.5",
|
||||||
"react-markdown": "6.0.2"
|
"react-markdown": "6.0.2",
|
||||||
|
"source-map-explorer": "^2.5.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"analyze": "source-map-explorer 'build/static/js/*.js'",
|
||||||
|
"size": "source-map-explorer 'build/static/js/*.js' --tsv --no-root",
|
||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
"build": "react-scripts build",
|
"build": "react-scripts build",
|
||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
|
|
|
@ -60,7 +60,6 @@
|
||||||
"webpack": "^5.37.0",
|
"webpack": "^5.37.0",
|
||||||
"rollup": "^2.50.6",
|
"rollup": "^2.50.6",
|
||||||
"@rollup/plugin-babel": "^5.3.0",
|
"@rollup/plugin-babel": "^5.3.0",
|
||||||
"rollup-plugin-terser": "^7.0.2",
|
|
||||||
"@rollup/plugin-commonjs": "^19.0.0",
|
"@rollup/plugin-commonjs": "^19.0.0",
|
||||||
"@rollup/plugin-json": "^4.1.0",
|
"@rollup/plugin-json": "^4.1.0",
|
||||||
"@rollup/plugin-node-resolve": "^13.0.0",
|
"@rollup/plugin-node-resolve": "^13.0.0",
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: rollup.exports
|
exports: rollup.exports,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -28,10 +30,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,12 @@
|
||||||
# Change log for: @freesewing/brian
|
# Change log for: @freesewing/brian
|
||||||
|
|
||||||
|
|
||||||
|
## 2.16.3 (NaN-NaN-NaN)
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- The `s3collar and `s3armhole` options now allow shifting the shoulder seam (`s3` is short for *Shift Shoulder Seam*)
|
||||||
|
|
||||||
## 2.16.1 (2021-05-30)
|
## 2.16.1 (2021-05-30)
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
|
@ -28,9 +28,12 @@
|
||||||
"react-intl": "^5.18.0",
|
"react-intl": "^5.18.0",
|
||||||
"react-scripts": "^4.0.3",
|
"react-scripts": "^4.0.3",
|
||||||
"file-saver": "^2.0.5",
|
"file-saver": "^2.0.5",
|
||||||
"react-markdown": "6.0.2"
|
"react-markdown": "6.0.2",
|
||||||
|
"source-map-explorer": "^2.5.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"analyze": "source-map-explorer 'build/static/js/*.js'",
|
||||||
|
"size": "source-map-explorer 'build/static/js/*.js' --tsv --no-root",
|
||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
"build": "react-scripts build",
|
"build": "react-scripts build",
|
||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
|
|
|
@ -60,7 +60,6 @@
|
||||||
"webpack": "^5.37.0",
|
"webpack": "^5.37.0",
|
||||||
"rollup": "^2.50.6",
|
"rollup": "^2.50.6",
|
||||||
"@rollup/plugin-babel": "^5.3.0",
|
"@rollup/plugin-babel": "^5.3.0",
|
||||||
"rollup-plugin-terser": "^7.0.2",
|
|
||||||
"@rollup/plugin-commonjs": "^19.0.0",
|
"@rollup/plugin-commonjs": "^19.0.0",
|
||||||
"@rollup/plugin-json": "^4.1.0",
|
"@rollup/plugin-json": "^4.1.0",
|
||||||
"@rollup/plugin-node-resolve": "^13.0.0",
|
"@rollup/plugin-node-resolve": "^13.0.0",
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: rollup.exports
|
exports: rollup.exports,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -28,10 +30,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,9 +28,12 @@
|
||||||
"react-intl": "^5.18.0",
|
"react-intl": "^5.18.0",
|
||||||
"react-scripts": "^4.0.3",
|
"react-scripts": "^4.0.3",
|
||||||
"file-saver": "^2.0.5",
|
"file-saver": "^2.0.5",
|
||||||
"react-markdown": "6.0.2"
|
"react-markdown": "6.0.2",
|
||||||
|
"source-map-explorer": "^2.5.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"analyze": "source-map-explorer 'build/static/js/*.js'",
|
||||||
|
"size": "source-map-explorer 'build/static/js/*.js' --tsv --no-root",
|
||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
"build": "react-scripts build",
|
"build": "react-scripts build",
|
||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
|
|
|
@ -59,7 +59,6 @@
|
||||||
"webpack": "^5.37.0",
|
"webpack": "^5.37.0",
|
||||||
"rollup": "^2.50.6",
|
"rollup": "^2.50.6",
|
||||||
"@rollup/plugin-babel": "^5.3.0",
|
"@rollup/plugin-babel": "^5.3.0",
|
||||||
"rollup-plugin-terser": "^7.0.2",
|
|
||||||
"@rollup/plugin-commonjs": "^19.0.0",
|
"@rollup/plugin-commonjs": "^19.0.0",
|
||||||
"@rollup/plugin-json": "^4.1.0",
|
"@rollup/plugin-json": "^4.1.0",
|
||||||
"@rollup/plugin-node-resolve": "^13.0.0",
|
"@rollup/plugin-node-resolve": "^13.0.0",
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: rollup.exports
|
exports: rollup.exports,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -28,10 +30,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,9 +28,12 @@
|
||||||
"react-intl": "^5.18.0",
|
"react-intl": "^5.18.0",
|
||||||
"react-scripts": "^4.0.3",
|
"react-scripts": "^4.0.3",
|
||||||
"file-saver": "^2.0.5",
|
"file-saver": "^2.0.5",
|
||||||
"react-markdown": "6.0.2"
|
"react-markdown": "6.0.2",
|
||||||
|
"source-map-explorer": "^2.5.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"analyze": "source-map-explorer 'build/static/js/*.js'",
|
||||||
|
"size": "source-map-explorer 'build/static/js/*.js' --tsv --no-root",
|
||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
"build": "react-scripts build",
|
"build": "react-scripts build",
|
||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
|
|
|
@ -64,7 +64,6 @@
|
||||||
"webpack": "^5.37.0",
|
"webpack": "^5.37.0",
|
||||||
"rollup": "^2.50.6",
|
"rollup": "^2.50.6",
|
||||||
"@rollup/plugin-babel": "^5.3.0",
|
"@rollup/plugin-babel": "^5.3.0",
|
||||||
"rollup-plugin-terser": "^7.0.2",
|
|
||||||
"@rollup/plugin-commonjs": "^19.0.0",
|
"@rollup/plugin-commonjs": "^19.0.0",
|
||||||
"@rollup/plugin-json": "^4.1.0",
|
"@rollup/plugin-json": "^4.1.0",
|
||||||
"@rollup/plugin-node-resolve": "^13.0.0",
|
"@rollup/plugin-node-resolve": "^13.0.0",
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: rollup.exports
|
exports: rollup.exports,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -28,10 +30,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,9 +28,12 @@
|
||||||
"react-intl": "^5.18.0",
|
"react-intl": "^5.18.0",
|
||||||
"react-scripts": "^4.0.3",
|
"react-scripts": "^4.0.3",
|
||||||
"file-saver": "^2.0.5",
|
"file-saver": "^2.0.5",
|
||||||
"react-markdown": "6.0.2"
|
"react-markdown": "6.0.2",
|
||||||
|
"source-map-explorer": "^2.5.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"analyze": "source-map-explorer 'build/static/js/*.js'",
|
||||||
|
"size": "source-map-explorer 'build/static/js/*.js' --tsv --no-root",
|
||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
"build": "react-scripts build",
|
"build": "react-scripts build",
|
||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
|
|
|
@ -62,7 +62,6 @@
|
||||||
"webpack": "^5.37.0",
|
"webpack": "^5.37.0",
|
||||||
"rollup": "^2.50.6",
|
"rollup": "^2.50.6",
|
||||||
"@rollup/plugin-babel": "^5.3.0",
|
"@rollup/plugin-babel": "^5.3.0",
|
||||||
"rollup-plugin-terser": "^7.0.2",
|
|
||||||
"@rollup/plugin-commonjs": "^19.0.0",
|
"@rollup/plugin-commonjs": "^19.0.0",
|
||||||
"@rollup/plugin-json": "^4.1.0",
|
"@rollup/plugin-json": "^4.1.0",
|
||||||
"@rollup/plugin-node-resolve": "^13.0.0",
|
"@rollup/plugin-node-resolve": "^13.0.0",
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: rollup.exports
|
exports: rollup.exports,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -28,10 +30,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,9 +28,12 @@
|
||||||
"react-intl": "^5.18.0",
|
"react-intl": "^5.18.0",
|
||||||
"react-scripts": "^4.0.3",
|
"react-scripts": "^4.0.3",
|
||||||
"file-saver": "^2.0.5",
|
"file-saver": "^2.0.5",
|
||||||
"react-markdown": "6.0.2"
|
"react-markdown": "6.0.2",
|
||||||
|
"source-map-explorer": "^2.5.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"analyze": "source-map-explorer 'build/static/js/*.js'",
|
||||||
|
"size": "source-map-explorer 'build/static/js/*.js' --tsv --no-root",
|
||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
"build": "react-scripts build",
|
"build": "react-scripts build",
|
||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
|
|
|
@ -59,7 +59,6 @@
|
||||||
"webpack": "^5.37.0",
|
"webpack": "^5.37.0",
|
||||||
"rollup": "^2.50.6",
|
"rollup": "^2.50.6",
|
||||||
"@rollup/plugin-babel": "^5.3.0",
|
"@rollup/plugin-babel": "^5.3.0",
|
||||||
"rollup-plugin-terser": "^7.0.2",
|
|
||||||
"@rollup/plugin-commonjs": "^19.0.0",
|
"@rollup/plugin-commonjs": "^19.0.0",
|
||||||
"@rollup/plugin-json": "^4.1.0",
|
"@rollup/plugin-json": "^4.1.0",
|
||||||
"@rollup/plugin-node-resolve": "^13.0.0",
|
"@rollup/plugin-node-resolve": "^13.0.0",
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: rollup.exports
|
exports: rollup.exports,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -28,10 +30,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,9 +28,12 @@
|
||||||
"react-intl": "^5.18.0",
|
"react-intl": "^5.18.0",
|
||||||
"react-scripts": "^4.0.3",
|
"react-scripts": "^4.0.3",
|
||||||
"file-saver": "^2.0.5",
|
"file-saver": "^2.0.5",
|
||||||
"react-markdown": "6.0.2"
|
"react-markdown": "6.0.2",
|
||||||
|
"source-map-explorer": "^2.5.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"analyze": "source-map-explorer 'build/static/js/*.js'",
|
||||||
|
"size": "source-map-explorer 'build/static/js/*.js' --tsv --no-root",
|
||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
"build": "react-scripts build",
|
"build": "react-scripts build",
|
||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
|
|
|
@ -61,7 +61,6 @@
|
||||||
"webpack": "^5.37.0",
|
"webpack": "^5.37.0",
|
||||||
"rollup": "^2.50.6",
|
"rollup": "^2.50.6",
|
||||||
"@rollup/plugin-babel": "^5.3.0",
|
"@rollup/plugin-babel": "^5.3.0",
|
||||||
"rollup-plugin-terser": "^7.0.2",
|
|
||||||
"@rollup/plugin-commonjs": "^19.0.0",
|
"@rollup/plugin-commonjs": "^19.0.0",
|
||||||
"@rollup/plugin-json": "^4.1.0",
|
"@rollup/plugin-json": "^4.1.0",
|
||||||
"@rollup/plugin-node-resolve": "^13.0.0",
|
"@rollup/plugin-node-resolve": "^13.0.0",
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: rollup.exports
|
exports: rollup.exports,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -28,10 +30,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,13 @@
|
||||||
# Change log for: @freesewing/components
|
# Change log for: @freesewing/components
|
||||||
|
|
||||||
|
|
||||||
|
## 2.16.3 (NaN-NaN-NaN)
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- Caption should not be passed as children to Legend and Example components See https://github.com/freesewing/freesewing/issues/1043
|
||||||
|
- Changed antman references to antperson
|
||||||
|
|
||||||
## 2.16.2 (2021-05-05)
|
## 2.16.2 (2021-05-05)
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
@ -2,15 +2,17 @@ import babel from '@rollup/plugin-babel'
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import sass from 'rollup-plugin-sass';
|
import sass from 'rollup-plugin-sass';
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license } from './package.json'
|
import { name, version, description, author, license } from './package.json'
|
||||||
import components from './src/index.js'
|
import components from './src/index.js'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
|
|
||||||
const createConfig = (component, module) => {
|
const createConfig = (component, module) => {
|
||||||
return {
|
return {
|
||||||
input: `./src/${component + '/'}index.js`,
|
input: `./src/${component + '/'}index.js`,
|
||||||
output: {
|
output: {
|
||||||
|
banner,
|
||||||
file: `./${component}/index` + (module ? '.mjs' : '.js'),
|
file: `./${component}/index` + (module ? '.mjs' : '.js'),
|
||||||
format: module ? 'es' : 'cjs',
|
format: module ? 'es' : 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
|
@ -25,11 +27,6 @@ const createConfig = (component, module) => {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
json(),
|
json(),
|
||||||
sass(),
|
sass(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -40,7 +37,7 @@ let dev = false
|
||||||
let only = ['Workbench']
|
let only = ['Workbench']
|
||||||
for (let component of components) {
|
for (let component of components) {
|
||||||
if (!dev || only.indexOf(component) !== -1) config.push(createConfig(component, false))
|
if (!dev || only.indexOf(component) !== -1) config.push(createConfig(component, false))
|
||||||
// Webpack doesn't handle .mjs very well. See #1079
|
// Using .mjs causes problems. See #1079
|
||||||
//config.push(createConfig(component, true));
|
//config.push(createConfig(component, true));
|
||||||
}
|
}
|
||||||
export default config
|
export default config
|
||||||
|
|
|
@ -2,25 +2,29 @@ import babel from '@rollup/plugin-babel'
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import { name, version, description, author, license } from './package.json'
|
import { name, version, description, author, license } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: 'src/index.js',
|
input: 'src/index.js',
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
|
banner,
|
||||||
file: 'dist/index.js',
|
file: 'dist/index.js',
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: 'default'
|
exports: 'default'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
banner,
|
||||||
file: 'dist/index.mjs',
|
file: 'dist/index.mjs',
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: 'default'
|
exports: 'default'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
banner,
|
||||||
file: 'tests/dist/index.js',
|
file: 'tests/dist/index.js',
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
|
@ -35,10 +39,5 @@ export default {
|
||||||
resolve(),
|
resolve(),
|
||||||
json(),
|
json(),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,9 +28,12 @@
|
||||||
"react-intl": "^5.18.0",
|
"react-intl": "^5.18.0",
|
||||||
"react-scripts": "^4.0.3",
|
"react-scripts": "^4.0.3",
|
||||||
"file-saver": "^2.0.5",
|
"file-saver": "^2.0.5",
|
||||||
"react-markdown": "6.0.2"
|
"react-markdown": "6.0.2",
|
||||||
|
"source-map-explorer": "^2.5.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"analyze": "source-map-explorer 'build/static/js/*.js'",
|
||||||
|
"size": "source-map-explorer 'build/static/js/*.js' --tsv --no-root",
|
||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
"build": "react-scripts build",
|
"build": "react-scripts build",
|
||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
|
|
|
@ -59,7 +59,6 @@
|
||||||
"webpack": "^5.37.0",
|
"webpack": "^5.37.0",
|
||||||
"rollup": "^2.50.6",
|
"rollup": "^2.50.6",
|
||||||
"@rollup/plugin-babel": "^5.3.0",
|
"@rollup/plugin-babel": "^5.3.0",
|
||||||
"rollup-plugin-terser": "^7.0.2",
|
|
||||||
"@rollup/plugin-commonjs": "^19.0.0",
|
"@rollup/plugin-commonjs": "^19.0.0",
|
||||||
"@rollup/plugin-json": "^4.1.0",
|
"@rollup/plugin-json": "^4.1.0",
|
||||||
"@rollup/plugin-node-resolve": "^13.0.0",
|
"@rollup/plugin-node-resolve": "^13.0.0",
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: rollup.exports
|
exports: rollup.exports,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -28,10 +30,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: rollup.exports
|
exports: rollup.exports,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -28,10 +30,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,9 +28,12 @@
|
||||||
"react-intl": "^5.18.0",
|
"react-intl": "^5.18.0",
|
||||||
"react-scripts": "^4.0.3",
|
"react-scripts": "^4.0.3",
|
||||||
"file-saver": "^2.0.5",
|
"file-saver": "^2.0.5",
|
||||||
"react-markdown": "6.0.2"
|
"react-markdown": "6.0.2",
|
||||||
|
"source-map-explorer": "^2.5.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"analyze": "source-map-explorer 'build/static/js/*.js'",
|
||||||
|
"size": "source-map-explorer 'build/static/js/*.js' --tsv --no-root",
|
||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
"build": "react-scripts build",
|
"build": "react-scripts build",
|
||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
|
|
|
@ -60,7 +60,6 @@
|
||||||
"webpack": "^5.37.0",
|
"webpack": "^5.37.0",
|
||||||
"rollup": "^2.50.6",
|
"rollup": "^2.50.6",
|
||||||
"@rollup/plugin-babel": "^5.3.0",
|
"@rollup/plugin-babel": "^5.3.0",
|
||||||
"rollup-plugin-terser": "^7.0.2",
|
|
||||||
"@rollup/plugin-commonjs": "^19.0.0",
|
"@rollup/plugin-commonjs": "^19.0.0",
|
||||||
"@rollup/plugin-json": "^4.1.0",
|
"@rollup/plugin-json": "^4.1.0",
|
||||||
"@rollup/plugin-node-resolve": "^13.0.0",
|
"@rollup/plugin-node-resolve": "^13.0.0",
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: rollup.exports
|
exports: rollup.exports,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -28,10 +30,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,9 +28,12 @@
|
||||||
"react-intl": "^5.18.0",
|
"react-intl": "^5.18.0",
|
||||||
"react-scripts": "^4.0.3",
|
"react-scripts": "^4.0.3",
|
||||||
"file-saver": "^2.0.5",
|
"file-saver": "^2.0.5",
|
||||||
"react-markdown": "6.0.2"
|
"react-markdown": "6.0.2",
|
||||||
|
"source-map-explorer": "^2.5.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"analyze": "source-map-explorer 'build/static/js/*.js'",
|
||||||
|
"size": "source-map-explorer 'build/static/js/*.js' --tsv --no-root",
|
||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
"build": "react-scripts build",
|
"build": "react-scripts build",
|
||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
|
|
|
@ -54,7 +54,6 @@
|
||||||
"webpack": "^5.37.0",
|
"webpack": "^5.37.0",
|
||||||
"rollup": "^2.50.6",
|
"rollup": "^2.50.6",
|
||||||
"@rollup/plugin-babel": "^5.3.0",
|
"@rollup/plugin-babel": "^5.3.0",
|
||||||
"rollup-plugin-terser": "^7.0.2",
|
|
||||||
"@rollup/plugin-commonjs": "^19.0.0",
|
"@rollup/plugin-commonjs": "^19.0.0",
|
||||||
"@rollup/plugin-json": "^4.1.0",
|
"@rollup/plugin-json": "^4.1.0",
|
||||||
"@rollup/plugin-node-resolve": "^13.0.0",
|
"@rollup/plugin-node-resolve": "^13.0.0",
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: rollup.exports
|
exports: rollup.exports,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -28,10 +30,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,9 +28,12 @@
|
||||||
"react-intl": "^5.18.0",
|
"react-intl": "^5.18.0",
|
||||||
"react-scripts": "^4.0.3",
|
"react-scripts": "^4.0.3",
|
||||||
"file-saver": "^2.0.5",
|
"file-saver": "^2.0.5",
|
||||||
"react-markdown": "6.0.2"
|
"react-markdown": "6.0.2",
|
||||||
|
"source-map-explorer": "^2.5.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"analyze": "source-map-explorer 'build/static/js/*.js'",
|
||||||
|
"size": "source-map-explorer 'build/static/js/*.js' --tsv --no-root",
|
||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
"build": "react-scripts build",
|
"build": "react-scripts build",
|
||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
|
|
|
@ -59,7 +59,6 @@
|
||||||
"webpack": "^5.37.0",
|
"webpack": "^5.37.0",
|
||||||
"rollup": "^2.50.6",
|
"rollup": "^2.50.6",
|
||||||
"@rollup/plugin-babel": "^5.3.0",
|
"@rollup/plugin-babel": "^5.3.0",
|
||||||
"rollup-plugin-terser": "^7.0.2",
|
|
||||||
"@rollup/plugin-commonjs": "^19.0.0",
|
"@rollup/plugin-commonjs": "^19.0.0",
|
||||||
"@rollup/plugin-json": "^4.1.0",
|
"@rollup/plugin-json": "^4.1.0",
|
||||||
"@rollup/plugin-node-resolve": "^13.0.0",
|
"@rollup/plugin-node-resolve": "^13.0.0",
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: rollup.exports
|
exports: rollup.exports,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -28,10 +30,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,9 +28,12 @@
|
||||||
"react-intl": "^5.18.0",
|
"react-intl": "^5.18.0",
|
||||||
"react-scripts": "^4.0.3",
|
"react-scripts": "^4.0.3",
|
||||||
"file-saver": "^2.0.5",
|
"file-saver": "^2.0.5",
|
||||||
"react-markdown": "6.0.2"
|
"react-markdown": "6.0.2",
|
||||||
|
"source-map-explorer": "^2.5.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"analyze": "source-map-explorer 'build/static/js/*.js'",
|
||||||
|
"size": "source-map-explorer 'build/static/js/*.js' --tsv --no-root",
|
||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
"build": "react-scripts build",
|
"build": "react-scripts build",
|
||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
|
|
|
@ -59,7 +59,6 @@
|
||||||
"webpack": "^5.37.0",
|
"webpack": "^5.37.0",
|
||||||
"rollup": "^2.50.6",
|
"rollup": "^2.50.6",
|
||||||
"@rollup/plugin-babel": "^5.3.0",
|
"@rollup/plugin-babel": "^5.3.0",
|
||||||
"rollup-plugin-terser": "^7.0.2",
|
|
||||||
"@rollup/plugin-commonjs": "^19.0.0",
|
"@rollup/plugin-commonjs": "^19.0.0",
|
||||||
"@rollup/plugin-json": "^4.1.0",
|
"@rollup/plugin-json": "^4.1.0",
|
||||||
"@rollup/plugin-node-resolve": "^13.0.0",
|
"@rollup/plugin-node-resolve": "^13.0.0",
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: rollup.exports
|
exports: rollup.exports,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -28,10 +30,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,8 +6,11 @@ import { terser } from 'rollup-plugin-terser'
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { main, module, name, version, description, author, license } from './package.json'
|
import { main, module, name, version, description, author, license } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
|
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner,
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
|
@ -16,6 +19,7 @@ const output = [
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner,
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
|
@ -35,10 +39,5 @@ export default {
|
||||||
resolve(),
|
resolve(),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,9 +28,12 @@
|
||||||
"react-intl": "^5.18.0",
|
"react-intl": "^5.18.0",
|
||||||
"react-scripts": "^4.0.3",
|
"react-scripts": "^4.0.3",
|
||||||
"file-saver": "^2.0.5",
|
"file-saver": "^2.0.5",
|
||||||
"react-markdown": "6.0.2"
|
"react-markdown": "6.0.2",
|
||||||
|
"source-map-explorer": "^2.5.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"analyze": "source-map-explorer 'build/static/js/*.js'",
|
||||||
|
"size": "source-map-explorer 'build/static/js/*.js' --tsv --no-root",
|
||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
"build": "react-scripts build",
|
"build": "react-scripts build",
|
||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
|
|
|
@ -62,7 +62,6 @@
|
||||||
"webpack": "^5.37.0",
|
"webpack": "^5.37.0",
|
||||||
"rollup": "^2.50.6",
|
"rollup": "^2.50.6",
|
||||||
"@rollup/plugin-babel": "^5.3.0",
|
"@rollup/plugin-babel": "^5.3.0",
|
||||||
"rollup-plugin-terser": "^7.0.2",
|
|
||||||
"@rollup/plugin-commonjs": "^19.0.0",
|
"@rollup/plugin-commonjs": "^19.0.0",
|
||||||
"@rollup/plugin-json": "^4.1.0",
|
"@rollup/plugin-json": "^4.1.0",
|
||||||
"@rollup/plugin-node-resolve": "^13.0.0",
|
"@rollup/plugin-node-resolve": "^13.0.0",
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: rollup.exports
|
exports: rollup.exports,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -28,10 +30,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,9 +28,12 @@
|
||||||
"react-intl": "^5.18.0",
|
"react-intl": "^5.18.0",
|
||||||
"react-scripts": "^4.0.3",
|
"react-scripts": "^4.0.3",
|
||||||
"file-saver": "^2.0.5",
|
"file-saver": "^2.0.5",
|
||||||
"react-markdown": "6.0.2"
|
"react-markdown": "6.0.2",
|
||||||
|
"source-map-explorer": "^2.5.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"analyze": "source-map-explorer 'build/static/js/*.js'",
|
||||||
|
"size": "source-map-explorer 'build/static/js/*.js' --tsv --no-root",
|
||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
"build": "react-scripts build",
|
"build": "react-scripts build",
|
||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
|
|
|
@ -59,7 +59,6 @@
|
||||||
"webpack": "^5.37.0",
|
"webpack": "^5.37.0",
|
||||||
"rollup": "^2.50.6",
|
"rollup": "^2.50.6",
|
||||||
"@rollup/plugin-babel": "^5.3.0",
|
"@rollup/plugin-babel": "^5.3.0",
|
||||||
"rollup-plugin-terser": "^7.0.2",
|
|
||||||
"@rollup/plugin-commonjs": "^19.0.0",
|
"@rollup/plugin-commonjs": "^19.0.0",
|
||||||
"@rollup/plugin-json": "^4.1.0",
|
"@rollup/plugin-json": "^4.1.0",
|
||||||
"@rollup/plugin-node-resolve": "^13.0.0",
|
"@rollup/plugin-node-resolve": "^13.0.0",
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: rollup.exports
|
exports: rollup.exports,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -28,10 +30,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,9 +28,12 @@
|
||||||
"react-intl": "^5.18.0",
|
"react-intl": "^5.18.0",
|
||||||
"react-scripts": "^4.0.3",
|
"react-scripts": "^4.0.3",
|
||||||
"file-saver": "^2.0.5",
|
"file-saver": "^2.0.5",
|
||||||
"react-markdown": "6.0.2"
|
"react-markdown": "6.0.2",
|
||||||
|
"source-map-explorer": "^2.5.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"analyze": "source-map-explorer 'build/static/js/*.js'",
|
||||||
|
"size": "source-map-explorer 'build/static/js/*.js' --tsv --no-root",
|
||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
"build": "react-scripts build",
|
"build": "react-scripts build",
|
||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
|
|
|
@ -60,7 +60,6 @@
|
||||||
"webpack": "^5.37.0",
|
"webpack": "^5.37.0",
|
||||||
"rollup": "^2.50.6",
|
"rollup": "^2.50.6",
|
||||||
"@rollup/plugin-babel": "^5.3.0",
|
"@rollup/plugin-babel": "^5.3.0",
|
||||||
"rollup-plugin-terser": "^7.0.2",
|
|
||||||
"@rollup/plugin-commonjs": "^19.0.0",
|
"@rollup/plugin-commonjs": "^19.0.0",
|
||||||
"@rollup/plugin-json": "^4.1.0",
|
"@rollup/plugin-json": "^4.1.0",
|
||||||
"@rollup/plugin-node-resolve": "^13.0.0",
|
"@rollup/plugin-node-resolve": "^13.0.0",
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: rollup.exports
|
exports: rollup.exports,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -28,10 +30,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,9 +28,12 @@
|
||||||
"react-intl": "^5.18.0",
|
"react-intl": "^5.18.0",
|
||||||
"react-scripts": "^4.0.3",
|
"react-scripts": "^4.0.3",
|
||||||
"file-saver": "^2.0.5",
|
"file-saver": "^2.0.5",
|
||||||
"react-markdown": "6.0.2"
|
"react-markdown": "6.0.2",
|
||||||
|
"source-map-explorer": "^2.5.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"analyze": "source-map-explorer 'build/static/js/*.js'",
|
||||||
|
"size": "source-map-explorer 'build/static/js/*.js' --tsv --no-root",
|
||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
"build": "react-scripts build",
|
"build": "react-scripts build",
|
||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
|
|
|
@ -60,7 +60,6 @@
|
||||||
"webpack": "^5.37.0",
|
"webpack": "^5.37.0",
|
||||||
"rollup": "^2.50.6",
|
"rollup": "^2.50.6",
|
||||||
"@rollup/plugin-babel": "^5.3.0",
|
"@rollup/plugin-babel": "^5.3.0",
|
||||||
"rollup-plugin-terser": "^7.0.2",
|
|
||||||
"@rollup/plugin-commonjs": "^19.0.0",
|
"@rollup/plugin-commonjs": "^19.0.0",
|
||||||
"@rollup/plugin-json": "^4.1.0",
|
"@rollup/plugin-json": "^4.1.0",
|
||||||
"@rollup/plugin-node-resolve": "^13.0.0",
|
"@rollup/plugin-node-resolve": "^13.0.0",
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: rollup.exports
|
exports: rollup.exports,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -28,10 +30,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,12 @@
|
||||||
# Change log for: @freesewing/i18n
|
# Change log for: @freesewing/i18n
|
||||||
|
|
||||||
|
|
||||||
|
## 2.16.3 (NaN-NaN-NaN)
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- Changed antman references to antperson
|
||||||
|
|
||||||
## 2.16.2 (2021-05-05)
|
## 2.16.2 (2021-05-05)
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
|
@ -1,15 +1,17 @@
|
||||||
import babel from '@rollup/plugin-babel'
|
import babel from '@rollup/plugin-babel'
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { main, name, version, description, author, license } from './package.json'
|
import { main, name, version, description, author, license } from './package.json'
|
||||||
import yaml from 'rollup-plugin-yaml'
|
import yaml from 'rollup-plugin-yaml'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: 'src/index.js',
|
input: 'src/index.js',
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
|
banner,
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
|
@ -25,10 +27,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
json(),
|
json(),
|
||||||
yaml(),
|
yaml(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,9 +28,12 @@
|
||||||
"react-intl": "^5.18.0",
|
"react-intl": "^5.18.0",
|
||||||
"react-scripts": "^4.0.3",
|
"react-scripts": "^4.0.3",
|
||||||
"file-saver": "^2.0.5",
|
"file-saver": "^2.0.5",
|
||||||
"react-markdown": "6.0.2"
|
"react-markdown": "6.0.2",
|
||||||
|
"source-map-explorer": "^2.5.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"analyze": "source-map-explorer 'build/static/js/*.js'",
|
||||||
|
"size": "source-map-explorer 'build/static/js/*.js' --tsv --no-root",
|
||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
"build": "react-scripts build",
|
"build": "react-scripts build",
|
||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
|
|
|
@ -62,7 +62,6 @@
|
||||||
"webpack": "^5.37.0",
|
"webpack": "^5.37.0",
|
||||||
"rollup": "^2.50.6",
|
"rollup": "^2.50.6",
|
||||||
"@rollup/plugin-babel": "^5.3.0",
|
"@rollup/plugin-babel": "^5.3.0",
|
||||||
"rollup-plugin-terser": "^7.0.2",
|
|
||||||
"@rollup/plugin-commonjs": "^19.0.0",
|
"@rollup/plugin-commonjs": "^19.0.0",
|
||||||
"@rollup/plugin-json": "^4.1.0",
|
"@rollup/plugin-json": "^4.1.0",
|
||||||
"@rollup/plugin-node-resolve": "^13.0.0",
|
"@rollup/plugin-node-resolve": "^13.0.0",
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: rollup.exports
|
exports: rollup.exports,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -28,10 +30,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,9 +28,12 @@
|
||||||
"react-intl": "^5.18.0",
|
"react-intl": "^5.18.0",
|
||||||
"react-scripts": "^4.0.3",
|
"react-scripts": "^4.0.3",
|
||||||
"file-saver": "^2.0.5",
|
"file-saver": "^2.0.5",
|
||||||
"react-markdown": "6.0.2"
|
"react-markdown": "6.0.2",
|
||||||
|
"source-map-explorer": "^2.5.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"analyze": "source-map-explorer 'build/static/js/*.js'",
|
||||||
|
"size": "source-map-explorer 'build/static/js/*.js' --tsv --no-root",
|
||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
"build": "react-scripts build",
|
"build": "react-scripts build",
|
||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
|
|
|
@ -60,7 +60,6 @@
|
||||||
"webpack": "^5.37.0",
|
"webpack": "^5.37.0",
|
||||||
"rollup": "^2.50.6",
|
"rollup": "^2.50.6",
|
||||||
"@rollup/plugin-babel": "^5.3.0",
|
"@rollup/plugin-babel": "^5.3.0",
|
||||||
"rollup-plugin-terser": "^7.0.2",
|
|
||||||
"@rollup/plugin-commonjs": "^19.0.0",
|
"@rollup/plugin-commonjs": "^19.0.0",
|
||||||
"@rollup/plugin-json": "^4.1.0",
|
"@rollup/plugin-json": "^4.1.0",
|
||||||
"@rollup/plugin-node-resolve": "^13.0.0",
|
"@rollup/plugin-node-resolve": "^13.0.0",
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: rollup.exports
|
exports: rollup.exports,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -28,10 +30,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: rollup.exports
|
exports: rollup.exports,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -28,10 +30,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: rollup.exports
|
exports: rollup.exports,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -28,10 +30,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,9 +28,12 @@
|
||||||
"react-intl": "^5.18.0",
|
"react-intl": "^5.18.0",
|
||||||
"react-scripts": "^4.0.3",
|
"react-scripts": "^4.0.3",
|
||||||
"file-saver": "^2.0.5",
|
"file-saver": "^2.0.5",
|
||||||
"react-markdown": "6.0.2"
|
"react-markdown": "6.0.2",
|
||||||
|
"source-map-explorer": "^2.5.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"analyze": "source-map-explorer 'build/static/js/*.js'",
|
||||||
|
"size": "source-map-explorer 'build/static/js/*.js' --tsv --no-root",
|
||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
"build": "react-scripts build",
|
"build": "react-scripts build",
|
||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
|
|
|
@ -60,7 +60,6 @@
|
||||||
"webpack": "^5.37.0",
|
"webpack": "^5.37.0",
|
||||||
"rollup": "^2.50.6",
|
"rollup": "^2.50.6",
|
||||||
"@rollup/plugin-babel": "^5.3.0",
|
"@rollup/plugin-babel": "^5.3.0",
|
||||||
"rollup-plugin-terser": "^7.0.2",
|
|
||||||
"@rollup/plugin-commonjs": "^19.0.0",
|
"@rollup/plugin-commonjs": "^19.0.0",
|
||||||
"@rollup/plugin-json": "^4.1.0",
|
"@rollup/plugin-json": "^4.1.0",
|
||||||
"@rollup/plugin-node-resolve": "^13.0.0",
|
"@rollup/plugin-node-resolve": "^13.0.0",
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: rollup.exports
|
exports: rollup.exports,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -28,10 +30,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: rollup.exports
|
exports: rollup.exports,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -28,10 +30,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,9 +28,12 @@
|
||||||
"react-intl": "^5.18.0",
|
"react-intl": "^5.18.0",
|
||||||
"react-scripts": "^4.0.3",
|
"react-scripts": "^4.0.3",
|
||||||
"file-saver": "^2.0.5",
|
"file-saver": "^2.0.5",
|
||||||
"react-markdown": "6.0.2"
|
"react-markdown": "6.0.2",
|
||||||
|
"source-map-explorer": "^2.5.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"analyze": "source-map-explorer 'build/static/js/*.js'",
|
||||||
|
"size": "source-map-explorer 'build/static/js/*.js' --tsv --no-root",
|
||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
"build": "react-scripts build",
|
"build": "react-scripts build",
|
||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
|
|
|
@ -59,7 +59,6 @@
|
||||||
"webpack": "^5.37.0",
|
"webpack": "^5.37.0",
|
||||||
"rollup": "^2.50.6",
|
"rollup": "^2.50.6",
|
||||||
"@rollup/plugin-babel": "^5.3.0",
|
"@rollup/plugin-babel": "^5.3.0",
|
||||||
"rollup-plugin-terser": "^7.0.2",
|
|
||||||
"@rollup/plugin-commonjs": "^19.0.0",
|
"@rollup/plugin-commonjs": "^19.0.0",
|
||||||
"@rollup/plugin-json": "^4.1.0",
|
"@rollup/plugin-json": "^4.1.0",
|
||||||
"@rollup/plugin-node-resolve": "^13.0.0",
|
"@rollup/plugin-node-resolve": "^13.0.0",
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: rollup.exports
|
exports: rollup.exports,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -28,10 +30,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: rollup.exports
|
exports: rollup.exports,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -28,10 +30,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: rollup.exports
|
exports: rollup.exports,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -28,10 +30,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: rollup.exports
|
exports: rollup.exports,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -28,10 +30,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: rollup.exports
|
exports: rollup.exports,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -28,10 +30,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: rollup.exports
|
exports: rollup.exports,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -28,10 +30,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: rollup.exports
|
exports: rollup.exports,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -28,10 +30,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: rollup.exports
|
exports: rollup.exports,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -28,10 +30,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: rollup.exports
|
exports: rollup.exports,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -28,10 +30,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: rollup.exports
|
exports: rollup.exports,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -28,10 +30,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve'
|
import resolve from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import json from '@rollup/plugin-json'
|
import json from '@rollup/plugin-json'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
|
||||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||||
|
|
||||||
|
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||||
const output = [
|
const output = [
|
||||||
{
|
{
|
||||||
|
banner
|
||||||
file: main,
|
file: main,
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: rollup.exports
|
exports: rollup.exports,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
output.push({
|
output.push({
|
||||||
|
banner
|
||||||
file: module,
|
file: module,
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
|
@ -28,10 +30,5 @@ export default {
|
||||||
resolve({ modulesOnly: true }),
|
resolve({ modulesOnly: true }),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
json(),
|
json(),
|
||||||
terser({
|
|
||||||
output: {
|
|
||||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue