mirror of
https://github.com/cupcakearmy/svelte-i18n.git
synced 2024-11-16 09:59:58 +01:00
Remove umd bundle
This commit is contained in:
parent
c328197edb
commit
f38b08b3a1
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "svelte-i18n",
|
||||
"version": "1.0.7",
|
||||
"version": "1.1.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -2,9 +2,7 @@
|
||||
"name": "svelte-i18n",
|
||||
"version": "1.1.0",
|
||||
"main": "dist/i18n.js",
|
||||
"module": "dist/i18n.mjs",
|
||||
"browser": "dist/i18n.umd.js",
|
||||
"types": "src/index.d.ts",
|
||||
"module": "src/index.js",
|
||||
"license": "MIT",
|
||||
"description": "Internationalization library for Svelte",
|
||||
"author": "Christian Kaisermann <christian@kaisermann.me>",
|
||||
|
@ -1,33 +1,19 @@
|
||||
import resolve from 'rollup-plugin-node-resolve';
|
||||
import commonjs from 'rollup-plugin-commonjs';
|
||||
import { terser } from "rollup-plugin-terser";
|
||||
import resolve from 'rollup-plugin-node-resolve'
|
||||
import commonjs from 'rollup-plugin-commonjs'
|
||||
import { terser } from 'rollup-plugin-terser'
|
||||
|
||||
import pkg from './package.json';
|
||||
import pkg from './package.json'
|
||||
|
||||
const plugins = [
|
||||
resolve(),
|
||||
commonjs(),
|
||||
terser()
|
||||
]
|
||||
const plugins = [resolve(), commonjs(), terser()]
|
||||
|
||||
export default [
|
||||
// browser-friendly UMD build
|
||||
{
|
||||
input: 'src/index.js',
|
||||
output: {
|
||||
name: 'svelteI18n',
|
||||
file: pkg.browser,
|
||||
format: 'umd'
|
||||
},
|
||||
plugins
|
||||
},
|
||||
{
|
||||
input: 'src/index.js',
|
||||
external: [...Object.keys(pkg.dependencies), 'svelte/store'],
|
||||
output: [
|
||||
{ file: pkg.main, format: 'cjs' },
|
||||
{ file: pkg.module, format: 'es' }
|
||||
{
|
||||
input: 'src/index.js',
|
||||
external: [...Object.keys(pkg.dependencies), 'svelte/store'],
|
||||
outpfut: [
|
||||
{ file: pkg.main, format: 'cjs' },
|
||||
{ file: pkg.module, format: 'es' },
|
||||
],
|
||||
plugins
|
||||
}
|
||||
];
|
||||
plugins,
|
||||
},
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user