Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support form roll up typescript project issue #236

Merged
merged 1 commit into from
Jun 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
162 changes: 140 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^9.0.0",
"@rollup/plugin-virtual": "^2.0.3",
"@rollup/plugin-typescript": "^11.1.1",
"babel-plugin-inline-json-import": "^0.3.2",
"chalk": "^4.1.0",
"commander": "^6.1.0 ",
Expand Down
3 changes: 3 additions & 0 deletions src/configs/rollup.es5.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

const path = require('path')
const process = require('process')
const fs = require('fs')
const babel = require('@rollup/plugin-babel').babel
const resolve = require('@rollup/plugin-node-resolve').nodeResolve
const commonjs = require('@rollup/plugin-commonjs')
Expand All @@ -32,6 +33,7 @@ const json = require('@rollup/plugin-json')
const virtual = require('@rollup/plugin-virtual')
const inject = require('@rollup/plugin-inject')
const image = require('@rollup/plugin-image')
const typescript = require('@rollup/plugin-typescript')
const buildHelpers = require(path.join(__dirname, '../helpers/build'))
const minify = require('rollup-plugin-terser').terser
const license = require('rollup-plugin-license')
Expand All @@ -47,6 +49,7 @@ module.exports = {
plugins: [
json(),
image(),
fs.existsSync(path.join(process.cwd(), 'tsconfig.json')) && typescript(),
inject({
'process.env': 'processEnv',
}),
Expand Down
3 changes: 3 additions & 0 deletions src/configs/rollup.es6.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

const path = require('path')
const process = require('process')
const fs = require('fs')
const babel = require('@rollup/plugin-babel').babel
const babelPluginClassProperties = require('@babel/plugin-proposal-class-properties')
const babelPresetTypescript = require('@babel/preset-typescript')
Expand All @@ -30,6 +31,7 @@ const json = require('@rollup/plugin-json')
const virtual = require('@rollup/plugin-virtual')
const inject = require('@rollup/plugin-inject')
const image = require('@rollup/plugin-image')
const typescript = require('@rollup/plugin-typescript')
const buildHelpers = require(path.join(__dirname, '../helpers/build'))
const minify = require('rollup-plugin-terser').terser
const license = require('rollup-plugin-license')
Expand All @@ -45,6 +47,7 @@ module.exports = {
plugins: [
json(),
image(),
fs.existsSync(path.join(process.cwd(), 'tsconfig.json')) && typescript(),
inject({
'process.env': 'processEnv',
}),
Expand Down