diff --git a/rollup.config.js b/rollup.config.js index 0d82244..266a6b9 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -4,7 +4,6 @@ import postcssPluginBanner from 'postcss-banner'; import postcssPluginCssnano from 'cssnano'; import strip from '@rollup/plugin-strip'; import { terser } from 'rollup-plugin-terser'; -import typescript from '@rollup/plugin-typescript'; const isDev = process.env.ROLLUP_WATCH || process.env.NODE_ENV === 'development'; @@ -20,7 +19,6 @@ const bannerText = `${pkg.name} v${pkg.version} by Nikita Karamov\n${pkg.homepag * @type {Plugin[]} */ const plugins = [ - typescript(), ]; if (!isDev) { @@ -98,12 +96,12 @@ const getOutputs = (baseDir) => { const config = [ { - input: './src/autoinit.ts', + input: './src/autoinit.js', output: getOutputs(`${outputDir}`), plugins, }, { - input: './src/shareon.ts', + input: './src/shareon.js', output: getOutputs(`${outputDir}noinit/`), plugins: plugins.slice(0, -1), }, diff --git a/src/autoinit.ts b/src/autoinit.js similarity index 84% rename from src/autoinit.ts rename to src/autoinit.js index a44dece..4374498 100644 --- a/src/autoinit.ts +++ b/src/autoinit.js @@ -1,4 +1,4 @@ -import './style.scss'; +import './style.css'; import initializeShareon from './shareon'; diff --git a/src/shareon.ts b/src/shareon.js similarity index 73% rename from src/shareon.ts rename to src/shareon.js index 72c8855..9446f3b 100644 --- a/src/shareon.ts +++ b/src/shareon.js @@ -1,15 +1,18 @@ -import urlBuilderMap from './networks'; +// eslint-disable-next-line import/no-unresolved +import urlBuilderMap from 'consts:urlBuilderMap'; -const initializeShareon = () : void => { +const initializeShareon = () => { const shareonContainers = document.getElementsByClassName('shareon'); // iterate over