Skip to content

Commit

Permalink
Removed sourcemap from build bundle files.
Browse files Browse the repository at this point in the history
  • Loading branch information
victorybiz committed Mar 21, 2021
1 parent a2ec7c6 commit d5dc480
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-simple-acl",
"version": "1.0.4",
"version": "1.0.5",
"description": "A simple unopinionated Vue plugin for managing user roles and permissions, access-control list (ACL) and role-based access control (RBAC).",
"main": "dist/vue-simple-acl.js",
"browser": "dist/vue-simple-acl.min.js",
Expand All @@ -13,7 +13,7 @@
],
"scripts": {
"dev": "vite",
"build": "npm run build:package",
"build": "NODE_ENV=production npm run build:package",
"build:vite": "vuedx-typecheck . && vite build",
"serve": "vite preview",
"build:package": "rollup --config rollup.config.js",
Expand Down
20 changes: 10 additions & 10 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default [
name: 'VueSimpleAcl',
file: "dist/vue-simple-acl.js",
format: "umd",
sourcemap: true,
sourcemap: (process.env.NODE_ENV === 'production' ? false : 'inline'),
globals: {
vue: 'Vue'
}
Expand All @@ -30,7 +30,7 @@ export default [
name: 'VueSimpleAcl',
file: "dist/vue-simple-acl.esm.js",
format: "es",
sourcemap: true,
sourcemap: (process.env.NODE_ENV === 'production' ? false : 'inline'),
globals: {
vue: 'Vue'
}
Expand All @@ -39,7 +39,7 @@ export default [
name: 'VueSimpleAcl',
file: "dist/vue-simple-acl.cjs.js",
format: "cjs",
sourcemap: true,
sourcemap: (process.env.NODE_ENV === 'production' ? false : 'inline'),
globals: {
vue: 'Vue'
}
Expand All @@ -48,7 +48,7 @@ export default [
name: 'VueSimpleAcl',
file: "dist/vue-simple-acl.min.js",
format: "iife",
sourcemap: true,
sourcemap: (process.env.NODE_ENV === 'production' ? false : 'inline'),
globals: {
vue: 'Vue'
}
Expand All @@ -62,7 +62,7 @@ export default [
css(),
// auto(),
resolve({ browser: true}),
// terser(),
(process.env.NODE_ENV === 'production' && terser()), // terser()
typescript({
exclude: ['node_modules/**', 'playground/**']
// use lib: and target: config in tsconfig.json
Expand All @@ -88,7 +88,7 @@ export default [
name: 'VueSimpleAcl',
file: "dist/vue-simple-acl.vue2.js",
format: "umd",
sourcemap: true,
sourcemap: (process.env.NODE_ENV === 'production' ? false : 'inline'),
globals: {
vue: 'Vue'
}
Expand All @@ -97,7 +97,7 @@ export default [
name: 'VueSimpleAcl',
file: "dist/vue-simple-acl.vue2.esm.js",
format: "es",
sourcemap: true,
sourcemap: (process.env.NODE_ENV === 'production' ? false : 'inline'),
globals: {
vue: 'Vue'
}
Expand All @@ -106,7 +106,7 @@ export default [
name: 'VueSimpleAcl',
file: "dist/vue-simple-acl.vue2.cjs.js",
format: "cjs",
sourcemap: true,
sourcemap: (process.env.NODE_ENV === 'production' ? false : 'inline'),
globals: {
vue: 'Vue'
}
Expand All @@ -115,7 +115,7 @@ export default [
name: 'VueSimpleAcl',
file: "dist/vue-simple-acl.vue2.min.js",
format: "iife",
sourcemap: true,
sourcemap: (process.env.NODE_ENV === 'production' ? false : 'inline'),
globals: {
vue: 'Vue'
}
Expand All @@ -129,7 +129,7 @@ export default [
css(),
// auto(),
resolve({ browser: true}),
terser(),
(process.env.NODE_ENV === 'production' && terser()), // terser()
typescript({
exclude: ['node_modules/**', 'playground/**']
// use lib: and target: config in tsconfig.json
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"moduleResolution": "node",
"strict": true,
"jsx": "preserve",
"sourceMap": true,
"sourceMap": false, // true
"resolveJsonModule": true,
"esModuleInterop": true,
"lib": ["esnext", "dom"],
Expand Down

0 comments on commit d5dc480

Please sign in to comment.