@npm_leadtech/legal-lib-components 0.3.40 → 0.3.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "0.3.40",
3
+ "version": "0.3.42",
4
4
  "dependencies": {
5
5
  "react": "^17.0.1",
6
6
  "react-dom": "^17.0.1"
package/rollup.config.js CHANGED
@@ -1,50 +1,27 @@
1
+ import peerDepsExternal from 'rollup-plugin-peer-deps-external';
1
2
  import resolve from '@rollup/plugin-node-resolve';
2
3
  import babel from '@rollup/plugin-babel';
3
- import peerDepsExternal from 'rollup-plugin-peer-deps-external';
4
4
  import commonjs from '@rollup/plugin-commonjs';
5
- import sass from 'node-sass';
6
5
  import postcss from 'rollup-plugin-postcss';
7
- import autoprefixer from 'autoprefixer';
8
6
  import packageJson from './package.json';
9
7
 
10
8
  export default {
11
9
  input: 'src/index.js', // All of your library files will be named exports from here
12
10
  output: [
13
11
  {
14
- // This is an easy way to keep your `main` in sync between rollup & the package
15
12
  file: packageJson.main,
16
13
  format: 'cjs',
17
14
  sourcemap: true,
18
15
  },
19
16
  ],
20
17
  plugins: [
21
- // This prevents needing an additional `external` prop in this config file by automaticall excluding peer dependencies
22
18
  peerDepsExternal(),
23
- // Convert CommonJS modules to ES6
24
- commonjs({
25
- include: 'node_modules/**',
26
- }),
27
- // "...locates modules using the Node resolution algorithm"
28
19
  resolve(),
29
- // Do Babel transpilation
30
20
  babel({
31
21
  exclude: 'node_modules/**',
32
22
  babelHelpers: 'bundled',
33
23
  }),
34
- // Does a number of things; Compiles sass, run autoprefixer, creates a sourcemap, and saves a .css file
35
- postcss({
36
- preprocessor: (content, id) =>
37
- new Promise((res) => {
38
- const result = sass.renderSync({ file: id });
39
-
40
- res({ code: result.css.toString() });
41
- }),
42
- plugins: [autoprefixer],
43
- modules: {
44
- scopeBehaviour: 'global',
45
- },
46
- sourceMap: true,
47
- extract: true,
48
- }),
24
+ commonjs(),
25
+ postcss(),
49
26
  ],
50
27
  };
package/build/index.css DELETED
@@ -1,5 +0,0 @@
1
- .primary {
2
- background-color: blue;
3
- color: white; }
4
-
5
- /*# sourceMappingURL=index.css.map */
@@ -1 +0,0 @@
1
- {"version":3,"sources":["Button.scss"],"names":[],"mappings":"AAAA;EACE,sBAAsB;EACtB,YAAY,EAAE","file":"index.css","sourcesContent":[".primary {\n background-color: blue;\n color: white; }\n"]}