Skip to content

Commit

Permalink
add cjs build back
Browse files Browse the repository at this point in the history
  • Loading branch information
jschuler committed Jun 24, 2021
1 parent 47bc82b commit 1d227cf
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion packages/dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"serve": "serve public"
},
"dependencies": {
"@patternfly/quickstarts": "1.0.0-rc.21",
"@patternfly/quickstarts": "1.0.0-rc.22",
"@patternfly/react-core": "^4.101.3",
"asciidoctor": "^2.2.1",
"react": "^16.14.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/module/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@patternfly/quickstarts",
"version": "1.0.0-rc.21",
"version": "1.0.0-rc.22",
"description": "PatternFly quick starts",
"files": [
"dist"
Expand Down
22 changes: 11 additions & 11 deletions packages/module/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import packageJson from './package.json';
const plugins = (esBundle) => {
return [
scss({
output: 'dist/quickstarts.css',
output: esBundle ? false : 'dist/quickstarts.css',
includePaths: ['../../node_modules/'],
importer(path) {
return { file: path[0] !== '~' ? path : path.slice(1) };
Expand Down Expand Up @@ -40,16 +40,16 @@ const plugins = (esBundle) => {
};

export default [
// {
// input: 'src/index.ts',
// output: {
// file: packageJson.main,
// format: 'cjs',
// sourcemap: true,
// },
// external: ['react', 'react-dom'],
// plugins: plugins(false),
// },
{
input: 'src/index.ts',
output: {
file: packageJson.main,
format: 'cjs',
sourcemap: true,
},
external: ['react', 'react-dom'],
plugins: plugins(false),
},
{
input: 'src/index.ts',
output: {
Expand Down

0 comments on commit 1d227cf

Please sign in to comment.